[MPlayer-cvslog] r33091 - trunk/gui/mplayer/gtk/gtk_menu.c

ib subversion at mplayerhq.hu
Mon Mar 21 13:46:03 CET 2011


Author: ib
Date: Mon Mar 21 13:46:03 2011
New Revision: 33091

Log:
Correct VCD's titles menu.

Limit menu entries to number of titles available on the VCD.

Modified:
   trunk/gui/mplayer/gtk/gtk_menu.c

Modified: trunk/gui/mplayer/gtk/gtk_menu.c
==============================================================================
--- trunk/gui/mplayer/gtk/gtk_menu.c	Mon Mar 21 13:44:17 2011	(r33090)
+++ trunk/gui/mplayer/gtk/gtk_menu.c	Mon Mar 21 13:46:03 2011	(r33091)
@@ -456,11 +456,11 @@ GtkWidget * create_PopUpMenu( void )
     if ( guiIntfStruct.VCDTracks )
      {
       char tmp[32]; int i;
-      for ( i=0;i < guiIntfStruct.VCDTracks;i++ )
+      for ( i=1;i < guiIntfStruct.VCDTracks;i++ )
        {
-        snprintf( tmp,32,MSGTR_MENU_Title,i+1 );
-    //AddMenuItem( VCDTitleMenu,tmp,( (i+1) << 16 ) + evSetVCDTrack );
-        AddMenuItem(window1, (const char*)empty_xpm, VCDTitleMenu,tmp,( (i+1) << 16 ) + evSetVCDTrack );
+        snprintf( tmp,32,MSGTR_MENU_Title,i );
+    //AddMenuItem( VCDTitleMenu,tmp,( i << 16 ) + evSetVCDTrack );
+        AddMenuItem(window1, (const char*)empty_xpm, VCDTitleMenu,tmp,( i << 16 ) + evSetVCDTrack );
        }
      }
      else


More information about the MPlayer-cvslog mailing list