[MPlayer-cvslog] r36779 - trunk/gui/dialog/menu.c
ib
subversion at mplayerhq.hu
Sun Feb 2 20:19:43 CET 2014
Author: ib
Date: Sun Feb 2 20:19:43 2014
New Revision: 36779
Log:
Improve emphasizing of the current video track.
This is correspondent with r34643 (audio tracks).
Modified:
trunk/gui/dialog/menu.c
Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c Sun Feb 2 20:18:31 2014 (r36778)
+++ trunk/gui/dialog/menu.c Sun Feb 2 20:19:43 2014 (r36779)
@@ -675,8 +675,9 @@ GtkWidget * CreatePopUpMenu( void )
{
int vid = ((sh_video_t *)demuxer->v_streams[i])->vid;
char tmp[32];
+ int selected_id = (video_id == vid || (video_id == -1 && vid == demuxer_default_video_track(mpctx_get_demuxer(guiInfo.mpcontext))));
snprintf( tmp,32,MSGTR_MENU_Track,vid );
- AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu,tmp,video_id == vid,( vid << 16 ) + ivSetVideo );
+ AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu,tmp,selected_id,( vid << 16 ) + ivSetVideo );
}
}
}
More information about the MPlayer-cvslog
mailing list