[MPlayer-cvslog] r34489 - trunk/gui/ui/actions.c

ib subversion at mplayerhq.hu
Mon Jan 2 17:24:06 CET 2012


Author: ib
Date: Mon Jan  2 17:24:06 2012
New Revision: 34489

Log:
Allow uiPlay() without guiInfo.Filename for some stream types.

The stream types allowed set their filenames later.

Modified:
   trunk/gui/ui/actions.c

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Mon Jan  2 16:28:30 2012	(r34488)
+++ trunk/gui/ui/actions.c	Mon Jan  2 17:24:06 2012	(r34489)
@@ -62,9 +62,13 @@ void uiFullScreen(void)
 
 void uiPlay(void)
 {
-    if (!guiInfo.Filename ||
-        (guiInfo.Filename[0] == 0) ||
-        (guiInfo.Playing == GUI_PLAY))
+    if (guiInfo.Playing == GUI_PLAY)
+        return;
+
+    if (guiInfo.StreamType != STREAMTYPE_CDDA &&
+        guiInfo.StreamType != STREAMTYPE_VCD &&
+        guiInfo.StreamType != STREAMTYPE_DVD &&
+        (!guiInfo.Filename || (guiInfo.Filename[0] == 0)))
         return;
 
     if (guiInfo.Playing == GUI_PAUSE) {


More information about the MPlayer-cvslog mailing list