[MPlayer-cvslog] r35664 - trunk/gui/ui/actions.c

ib subversion at mplayerhq.hu
Tue Dec 11 14:44:31 CET 2012


Author: ib
Date: Tue Dec 11 14:44:31 2012
New Revision: 35664

Log:
Fix condition in uiNext().

Chapters might be set temporarily to zero in stop mode if chapters
information isn't yet available. This must not allow Chapter increasing.

Modified:
   trunk/gui/ui/actions.c

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Tue Dec 11 14:42:06 2012	(r35663)
+++ trunk/gui/ui/actions.c	Tue Dec 11 14:44:31 2012	(r35664)
@@ -441,7 +441,7 @@ void uiNext(void)
 
     case STREAMTYPE_DVD:
 
-        if (guiInfo.Chapter++ == guiInfo.Chapters) {
+        if (guiInfo.Chapter++ >= guiInfo.Chapters) {
             guiInfo.Chapter = 1;
 
             if (++guiInfo.Track > guiInfo.Tracks) {


More information about the MPlayer-cvslog mailing list