[MPlayer-dev-eng] [PATCH] GUI: Reset playlist to first item after last track or STOP

Hans-Dieter Kosch hdkosch at kabelbw.de
Sun Dec 9 21:14:34 CET 2012


Ingo Brückl wrote:
> Hans-Dieter Kosch wrote on Sat, 08 Dec 2012 22:12:03 +0100:
> 
>> Reset playlist to first item after last track or STOP.
> 
> Differently realized in svn r35640.
> 
I was sure, you find the better coding :-)

However, after reset, track number is 0 instead of 1, due to uiSetFile().
Patch inline below.


--- interface.c (revision 35641)
+++ interface.c (working copy)
@@ -851,6 +851,7 @@

                      curr = listMgr(PLAYLIST_ITEM_SET_CURR, 
listMgr(PLAYLIST_GET, 0));
                      uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
+                    guiInfo.Track = 1;
                  }
              }


Hans-Dieter


More information about the MPlayer-dev-eng mailing list