diff gui/interface.c @ 35467:364387ae95f4

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.
author ib
date Sun, 02 Dec 2012 15:56:19 +0000
parents e671bb33230f
children 047fc4746236
line wrap: on
line diff
--- a/gui/interface.c	Sun Dec 02 15:55:01 2012 +0000
+++ b/gui/interface.c	Sun Dec 02 15:56:19 2012 +0000
@@ -328,7 +328,7 @@
 #ifdef CONFIG_DVDREAD
     dvd_priv_t *dvd;
 #endif
-    plItem *next;
+    plItem *next = NULL;
     int msg, state;
 
     if (guiInfo.mpcontext)
@@ -788,6 +788,7 @@
                 break;
         }
 
+        if (guiInfo.Playing)
         next = listMgr(PLAYLIST_ITEM_GET_NEXT, 0);
 
         if (guiInfo.Playing && next) {