[MPlayer-cvslog] r35506 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Thu Nov 29 12:35:23 CET 2012


Author: ib
Date: Thu Nov 29 12:35:22 2012
New Revision: 35506

Log:
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.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Thu Nov 29 05:52:19 2012	(r35505)
+++ trunk/gui/interface.c	Thu Nov 29 12:35:22 2012	(r35506)
@@ -789,12 +789,13 @@ int gui(int what, void *data)
 
             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;


More information about the MPlayer-cvslog mailing list