[MPlayer-cvslog] r38073 - trunk/gui/dialog/menu.c

ib subversion at mplayerhq.hu
Thu Apr 12 15:57:35 EEST 2018


Author: ib
Date: Thu Apr 12 15:57:35 2018
New Revision: 38073

Log:
Fix broken subtitle track display after evDropSubtitle.

After the drop, the check mark of the currently active
subtitle was missing.

Modified:
   trunk/gui/dialog/menu.c

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Thu Apr 12 15:53:41 2018	(r38072)
+++ trunk/gui/dialog/menu.c	Thu Apr 12 15:57:35 2018	(r38073)
@@ -759,6 +759,13 @@ GtkWidget * CreatePopUpMenu( int wType )
 
   mpctx_get_global_sub_info(guiInfo.mpcontext, &subs, &sub_pos);
 
+  if ( guiInfo.mpcontext->set_of_sub_pos >= 0 )
+   {
+    sub_pos = guiInfo.mpcontext->set_of_sub_pos;
+
+    if ( guiInfo.mpcontext->sub_counts[SUB_SOURCE_SUBS] == 0 ) sub_pos = -1;
+   }
+
   if ( subs && guiInfo.StreamType != STREAMTYPE_DVD )
    {
     int i, j, subs0 = guiInfo.mpcontext->sub_counts[SUB_SOURCE_SUBS], subs1 = guiInfo.mpcontext->sub_counts[SUB_SOURCE_VOBSUB];


More information about the MPlayer-cvslog mailing list