[MPlayer-cvslog] r34770 - trunk/gui/util/list.c

ib subversion at mplayerhq.hu
Thu Feb 23 14:30:16 CET 2012


Author: ib
Date: Thu Feb 23 14:30:16 2012
New Revision: 34770

Log:
Cosmetic: Arrange listMgr() commands in switch statement.

Modified:
   trunk/gui/util/list.c

Modified: trunk/gui/util/list.c
==============================================================================
--- trunk/gui/util/list.c	Thu Feb 23 14:23:54 2012	(r34769)
+++ trunk/gui/util/list.c	Thu Feb 23 14:30:16 2012	(r34770)
@@ -74,14 +74,14 @@ void *listMgr(int cmd, void *data)
         } else
             return listMgr(PLAYLIST_ITEM_APPEND, pdat);
 
-    case PLAYLIST_ITEM_GET_NEXT:
+    case PLAYLIST_ITEM_SET_CURR:
 
-        if (plCurrent && plCurrent->next) {
-            plCurrent = plCurrent->next;
-            return plCurrent;
-        }
+        plCurrent = pdat;
+        return plCurrent;
 
-        return NULL;
+    case PLAYLIST_ITEM_GET_CURR:
+
+        return plCurrent;
 
     case PLAYLIST_ITEM_GET_PREV:
 
@@ -92,14 +92,14 @@ void *listMgr(int cmd, void *data)
 
         return NULL;
 
-    case PLAYLIST_ITEM_SET_CURR:
-
-        plCurrent = pdat;
-        return plCurrent;
+    case PLAYLIST_ITEM_GET_NEXT:
 
-    case PLAYLIST_ITEM_GET_CURR:
+        if (plCurrent && plCurrent->next) {
+            plCurrent = plCurrent->next;
+            return plCurrent;
+        }
 
-        return plCurrent;
+        return NULL;
 
     case PLAYLIST_ITEM_DEL_CURR:
 


More information about the MPlayer-cvslog mailing list