changeset 35553:29f2de5e63d6

Don't unconditionally reset playlist to first item after playback. Only do so if the current item isn't the first one in the list. This will continue displaying the file's media information.
author ib
date Mon, 10 Dec 2012 02:08:43 +0000
parents 546350153838
children 5cccc59f4c5b
files gui/interface.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Mon Dec 10 01:54:22 2012 +0000
+++ b/gui/interface.c	Mon Dec 10 02:08:43 2012 +0000
@@ -847,7 +847,7 @@
             if (isPlaylistStreamtype) {
                 if (!listMgr(PLAYLIST_ITEM_GET_CURR, 0))
                     uiUnsetFile();
-                else {
+                else if (listMgr(PLAYLIST_ITEM_GET_CURR, 0) != listMgr(PLAYLIST_GET, 0)) {
                     plItem *curr = listMgr(PLAYLIST_ITEM_SET_CURR, listMgr(PLAYLIST_GET, 0));
                     uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
                     guiInfo.Track = 1;