diff gui/interface.c @ 35381:746e2e0577b2

Without current playlist item, reset guiInfo's Filename and StreamType. This fixes a blocking when deleting the playlist while or after playback and trying to play again. Reported by Hans-Dieter Kosch, hdkosch kabelbw de. (Reset them either after playback when playing or immediately if not playing which will display the filename played as long as possible.)
author ib
date Sun, 25 Nov 2012 14:38:58 +0000
parents 02006c5b3b30
children a54338c73df8
line wrap: on
line diff
--- a/gui/interface.c	Sun Nov 25 14:18:12 2012 +0000
+++ b/gui/interface.c	Sun Nov 25 14:38:58 2012 +0000
@@ -789,6 +789,11 @@
 
             filename = NULL;
 
+            if (!listMgr(PLAYLIST_ITEM_GET_CURR, 0) &&
+                (guiInfo.StreamType == STREAMTYPE_FILE ||
+                 guiInfo.StreamType == STREAMTYPE_STREAM))
+                uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY);
+
             guiInfo.ElapsedTime   = 0;
             guiInfo.Position      = 0;
             guiInfo.AudioChannels = 0;