[MPlayer-cvslog] r35484 - trunk/gui/ui/gtk/playlist.c

ib subversion at mplayerhq.hu
Mon Nov 26 11:49:33 CET 2012


Author: ib
Date: Mon Nov 26 11:49:33 2012
New Revision: 35484

Log:
Don't unconditionally reset Filename and StreamType if not playing.

Only do so if the StreamType is permitted for playlists.

This fixes broken continuation of playback of a CD, DVD etc. when
closing an empty playlist with OK.

Reported by Hans-Dieter Kosch, hdkosch kabelbw de.

Modified:
   trunk/gui/ui/gtk/playlist.c

Modified: trunk/gui/ui/gtk/playlist.c
==============================================================================
--- trunk/gui/ui/gtk/playlist.c	Mon Nov 26 11:48:26 2012	(r35483)
+++ trunk/gui/ui/gtk/playlist.c	Mon Nov 26 11:49:33 2012	(r35484)
@@ -216,7 +216,7 @@ static void plButtonReleased( GtkButton 
 //	  guiInfo.NewPlay=GUI_FILE_NEW;
 //	  guiInfo.StreamType=STREAMTYPE_FILE;
 	 }
-	else if (!guiInfo.Playing) uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY);
+	else if (isPlaylistStreamtype && !guiInfo.Playing) uiSetFileName(NULL, NULL, STREAMTYPE_DUMMY);
        }
   case 0: // cancel
        HidePlayList();


More information about the MPlayer-cvslog mailing list