changeset 35412:2de8e26093c4

Don't unconditionally reset AudioChannels after playback. Only do so if no media opened. This will continue displaying the correct audio channel information for the file still being opened after playback.
author ib
date Thu, 29 Nov 2012 11:35:22 +0000
parents abece00352ec
children b092553a25c1
files gui/interface.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Thu Nov 29 04:52:19 2012 +0000
+++ b/gui/interface.c	Thu Nov 29 11:35:22 2012 +0000
@@ -789,12 +789,13 @@
 
             filename = NULL;
 
-            if (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0))
+            if (isPlaylistStreamtype && !listMgr(PLAYLIST_ITEM_GET_CURR, 0)) {
+                guiInfo.AudioChannels = 0;
                 uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY);
+            }
 
             guiInfo.ElapsedTime   = 0;
             guiInfo.Position      = 0;
-            guiInfo.AudioChannels = 0;
 
             guiInfo.Track   = 1;
             guiInfo.Chapter = 1;