[MPlayer-cvslog] r35561 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Sun Dec 2 16:56:19 CET 2012


Author: ib
Date: Sun Dec  2 16:56:19 2012
New Revision: 35561

Log:
Fix bug with stop button and playlist.

Although the current file was stopped and its information still
displayed, play would skip to next file in list. Now, the file
stopped can be resumed.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sun Dec  2 16:55:01 2012	(r35560)
+++ trunk/gui/interface.c	Sun Dec  2 16:56:19 2012	(r35561)
@@ -328,7 +328,7 @@ int gui(int what, void *data)
 #ifdef CONFIG_DVDREAD
     dvd_priv_t *dvd;
 #endif
-    plItem *next;
+    plItem *next = NULL;
     int msg, state;
 
     if (guiInfo.mpcontext)
@@ -788,6 +788,7 @@ int gui(int what, void *data)
                 break;
         }
 
+        if (guiInfo.Playing)
         next = listMgr(PLAYLIST_ITEM_GET_NEXT, 0);
 
         if (guiInfo.Playing && next) {


More information about the MPlayer-cvslog mailing list