diff gui/ui/main.c @ 35389:a54338c73df8

Simplify playlist handling by defining a symbolic constant. This should make the code also easier to read.
author ib
date Mon, 26 Nov 2012 10:48:26 +0000
parents 8b8534de8b83
children 696a8a165952
line wrap: on
line diff
--- a/gui/ui/main.c	Sun Nov 25 22:56:28 2012 +0000
+++ b/gui/ui/main.c	Mon Nov 26 10:48:26 2012 +0000
@@ -208,7 +208,7 @@
 
         if ( ( msg == evPlaySwitchToPause )&&( guiInfo.Playing == GUI_PAUSE ) ) goto NoPause;
 
-	if ( listMgr( PLAYLIST_ITEM_GET_CURR,0 ) &&( guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM ) )
+	if ( isPlaylistStreamtype && listMgr( PLAYLIST_ITEM_GET_CURR,0 ) )
 	 {
 	  plItem * curr = listMgr( PLAYLIST_ITEM_GET_CURR,0 );
 	  uiSetFileName( curr->path,curr->name,SAME_STREAMTYPE );