# HG changeset patch # User ib # Date 1326556018 0 # Node ID 980e3cb2a5a8db9fad8fdd4c371ae60cf03dfb73 # Parent fd5512f5bfe93180afe3cbfb434464387f57d0a1 Don't needlessly set variables. These IDs have already been set by the mp_property_do() calls. diff -r fd5512f5bfe9 -r 980e3cb2a5a8 gui/ui/main.c --- a/gui/ui/main.c Sat Jan 14 14:06:29 2012 +0000 +++ b/gui/ui/main.c Sat Jan 14 15:46:58 2012 +0000 @@ -147,13 +147,11 @@ 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; 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; break; case ivSetSubtitle: