changeset 34477:980e3cb2a5a8

Don't needlessly set variables. These IDs have already been set by the mp_property_do() calls.
author ib
date Sat, 14 Jan 2012 15:46:58 +0000
parents fd5512f5bfe9
children 8e09f1cb3ecd
files gui/ui/main.c
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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: