changeset 35485:4d2ebecd1605

Set track number in uiCurr(). Since a playlist can change on the fly during playback by a playlist file, this ensures a correct track number.
author ib
date Mon, 03 Dec 2012 14:12:13 +0000
parents 9dceffa5d9b2
children 7b090d0f253b
files gui/ui/actions.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/ui/actions.c	Mon Dec 03 14:10:12 2012 +0000
+++ b/gui/ui/actions.c	Mon Dec 03 14:12:13 2012 +0000
@@ -326,6 +326,7 @@
         if (curr) {
             uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
             guiInfo.PlaylistNext = 0;
+            guiInfo.Track = (int)listMgr(PLAYLIST_ITEM_GET_POS, curr);
             break;
         }