diff gui/interface.c @ 35430:2d55540614a9

Move uiProcessNextInPlaylist to the guiInfo structure. It's an information for GUI control and need not be a separate global variable. Additionally, rename it PlaylistNext to shorten the name.
author ib
date Fri, 30 Nov 2012 11:40:35 +0000
parents 3a9048421524
children f42cc2361ee4
line wrap: on
line diff
--- a/gui/interface.c	Fri Nov 30 11:14:30 2012 +0000
+++ b/gui/interface.c	Fri Nov 30 11:40:35 2012 +0000
@@ -58,8 +58,9 @@
 #endif
 
 guiInterface_t guiInfo = {
-    .StreamType = STREAMTYPE_DUMMY,
-    .Balance    = 50.0f
+    .StreamType   = STREAMTYPE_DUMMY,
+    .Balance      = 50.0f,
+    .PlaylistNext = 1
 };
 
 static int initialized;
@@ -766,8 +767,8 @@
 
         uiEventHandling(ivRedraw, 1);
 
-        if (!uiProcessNextInPlaylist && guiInfo.Playing) {
-            uiProcessNextInPlaylist = 1;
+        if (!guiInfo.PlaylistNext && guiInfo.Playing) {
+            guiInfo.PlaylistNext = 1;
             break;
         }
 
@@ -866,7 +867,7 @@
     }
 
     uiCurr();   // update filename
-    uiProcessNextInPlaylist = 1;
+    guiInfo.PlaylistNext = 1;
 
     if (enqueue)
         filename = NULL;            // don't start playing