changeset 33003:ccf1cb01d6a8

Correct next track button functionality for VCDs. Limit next track button functionality to number of titles available on the VCD.
author ib
date Mon, 21 Mar 2011 12:44:17 +0000
parents 676e1222fb21
children b4cd105aa048
files gui/mplayer/play.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/mplayer/play.c	Mon Mar 21 12:39:28 2011 +0000
+++ b/gui/mplayer/play.c	Mon Mar 21 12:44:17 2011 +0000
@@ -429,10 +429,16 @@
 
 #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