changeset 36683:acb4a92aba16

Improve emphasizing of the current video track. This is correspondent with r34643 (audio tracks).
author ib
date Sun, 02 Feb 2014 19:19:43 +0000
parents 68794f2fbf1e
children b4641dd0692b
files gui/dialog/menu.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/menu.c	Sun Feb 02 19:18:31 2014 +0000
+++ b/gui/dialog/menu.c	Sun Feb 02 19:19:43 2014 +0000
@@ -675,8 +675,9 @@
         {
          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 );
         }
      }
    }