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

ib subversion at mplayerhq.hu
Mon Dec 10 13:46:56 CET 2012


Author: ib
Date: Mon Dec 10 13:46:56 2012
New Revision: 35652

Log:
Limit playlist reset to first item after playback.

Only reset if playing, not if playback has been stopped by user.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Mon Dec 10 13:43:07 2012	(r35651)
+++ trunk/gui/interface.c	Mon Dec 10 13:46:56 2012	(r35652)
@@ -847,7 +847,7 @@ int gui(int what, void *data)
 
                 if (!curr)
                     uiUnsetFile();
-                else if (curr != listMgr(PLAYLIST_GET, 0)) {
+                else if ((curr != listMgr(PLAYLIST_GET, 0)) && guiInfo.Playing) {
                     curr = listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0));
                     uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
                     guiInfo.Track = 1;


More information about the MPlayer-cvslog mailing list