[MPlayer-cvslog] r33090 - trunk/gui/mplayer/play.c

ib subversion at mplayerhq.hu
Mon Mar 21 13:44:17 CET 2011


Author: ib
Date: Mon Mar 21 13:44:17 2011
New Revision: 33090

Log:
Correct next track button functionality for VCDs.

Limit next track button functionality to number of titles available
on the VCD.

Modified:
   trunk/gui/mplayer/play.c

Modified: trunk/gui/mplayer/play.c
==============================================================================
--- trunk/gui/mplayer/play.c	Mon Mar 21 13:39:28 2011	(r33089)
+++ trunk/gui/mplayer/play.c	Mon Mar 21 13:44:17 2011	(r33090)
@@ -429,10 +429,16 @@ void mplNext(void)
 
 #ifdef CONFIG_VCD
     case STREAMTYPE_VCD:
-        if (++guiIntfStruct.Track > guiIntfStruct.VCDTracks) {
+
+        if (++guiIntfStruct.Track >= guiIntfStruct.VCDTracks) {
             guiIntfStruct.Track = guiIntfStruct.VCDTracks;
+
+            if (guiIntfStruct.VCDTracks > 1)
+                guiIntfStruct.Track--;
+
             stop = 1;
         }
+
         break;
 #endif
 


More information about the MPlayer-cvslog mailing list