Mercurial > mplayer.hg
changeset 34469:c3f95506f756
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.
author | ib |
---|---|
date | Fri, 13 Jan 2012 16:19:35 +0000 |
parents | ef94d1d0e265 |
children | 571201af959c |
files | gui/ui/main.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/main.c Fri Jan 13 15:25:13 2012 +0000 +++ b/gui/ui/main.c Fri Jan 13 16:19:35 2012 +0000 @@ -146,13 +146,15 @@ 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);