[MPlayer-cvslog] r34557 - trunk/gui/ui/main.c
ib
subversion at mplayerhq.hu
Fri Jan 13 17:19:35 CET 2012
Author: ib
Date: Fri Jan 13 17:19:35 2012
New Revision: 34557
Log:
Fix bug with switching audio and video tracks.
The track did not change.
This closes Bugzilla #2001.
In addition, switching won't restart playback now.
Modified:
trunk/gui/ui/main.c
Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c Fri Jan 13 16:25:13 2012 (r34556)
+++ trunk/gui/ui/main.c Fri Jan 13 17:19:35 2012 (r34557)
@@ -146,13 +146,15 @@ void uiEventHandling( int msg,float para
case ivSetAudio:
if ( !mpctx_get_demuxer(guiInfo.mpcontext) || audio_id == iparam ) break;
+ mp_property_do("switch_audio",M_PROPERTY_SET,&iparam,guiInfo.mpcontext);
audio_id=iparam;
- goto play;
+ break;
case ivSetVideo:
if ( !mpctx_get_demuxer(guiInfo.mpcontext) || video_id == iparam ) break;
+ mp_property_do("switch_video",M_PROPERTY_SET,&iparam,guiInfo.mpcontext);
video_id=iparam;
- goto play;
+ break;
case ivSetSubtitle:
mp_property_do("sub",M_PROPERTY_SET,&iparam,guiInfo.mpcontext);
More information about the MPlayer-cvslog
mailing list