[MPlayer-cvslog] r34565 - trunk/gui/ui/main.c

ib subversion at mplayerhq.hu
Sat Jan 14 16:46:58 CET 2012


Author: ib
Date: Sat Jan 14 16:46:58 2012
New Revision: 34565

Log:
Don't needlessly set variables.

These IDs have already been set by the mp_property_do() calls.

Modified:
   trunk/gui/ui/main.c

Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c	Sat Jan 14 15:06:29 2012	(r34564)
+++ trunk/gui/ui/main.c	Sat Jan 14 16:46:58 2012	(r34565)
@@ -147,13 +147,11 @@ 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;
 	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:


More information about the MPlayer-cvslog mailing list