changeset 35480:6635c8830a6d

Set track at startup with a non-empty GUI playlist.
author ib
date Mon, 03 Dec 2012 11:20:47 +0000
parents ab09ed2d181b
children 2173d4fe2ef1
files gui/interface.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Mon Dec 03 10:50:48 2012 +0000
+++ b/gui/interface.c	Mon Dec 03 11:20:47 2012 +0000
@@ -241,6 +241,7 @@
 
     if (playlist && !filename) {
         uiSetFile(playlist->path, playlist->name, STREAMTYPE_FILE);
+        guiInfo.Track = 1;
         filename = NULL; // don't start playing
     }