[MPlayer-cvslog] r35298 - trunk/command.c

reimar subversion at mplayerhq.hu
Tue Oct 30 19:00:53 CET 2012


Author: reimar
Date: Tue Oct 30 19:00:52 2012
New Revision: 35298

Log:
Do not assume that a stream is available for capture.

Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	Tue Oct 30 18:47:18 2012	(r35297)
+++ trunk/command.c	Tue Oct 30 19:00:52 2012	(r35298)
@@ -1115,7 +1115,7 @@ static int mp_property_capture(m_option_
                                void *arg, MPContext *mpctx)
 {
     int ret;
-    int capturing = !!mpctx->stream->capture_file;
+    int capturing = mpctx->stream && mpctx->stream->capture_file;
 
     if (!mpctx->stream)
         return M_PROPERTY_UNAVAILABLE;


More information about the MPlayer-cvslog mailing list