diff gui/interface.h @ 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 02006c5b3b30
children d076af01765d
line wrap: on
line diff
--- a/gui/interface.h	Sun Nov 25 22:56:28 2012 +0000
+++ b/gui/interface.h	Mon Nov 26 10:48:26 2012 +0000
@@ -69,6 +69,9 @@
 #define GUI_FILE_NEW  2
 //@}
 
+/// StreamTypes that are permitted in a playlist
+#define isPlaylistStreamtype (guiInfo.StreamType == STREAMTYPE_FILE || guiInfo.StreamType == STREAMTYPE_STREAM)
+
 /// mplayer() instructions
 enum {
     MPLAYER_EXIT_GUI,