changeset 33004:b4cd105aa048

Correct VCD's titles menu. Limit menu entries to number of titles available on the VCD.
author ib
date Mon, 21 Mar 2011 12:46:03 +0000
parents ccf1cb01d6a8
children d116366f3523
files gui/mplayer/gtk/gtk_menu.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/gui/mplayer/gtk/gtk_menu.c	Mon Mar 21 12:44:17 2011 +0000
+++ b/gui/mplayer/gtk/gtk_menu.c	Mon Mar 21 12:46:03 2011 +0000
@@ -456,11 +456,11 @@
     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