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

reimar subversion at mplayerhq.hu
Mon Nov 9 16:04:57 CET 2009


Author: reimar
Date: Mon Nov  9 16:04:57 2009
New Revision: 29862

Log:
Make sure the teletext property stuff does not crash if no demuxer is available.

Modified:
   trunk/command.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	Mon Nov  9 15:12:14 2009	(r29861)
+++ trunk/command.c	Mon Nov  9 16:04:57 2009	(r29862)
@@ -1888,7 +1888,7 @@ static int mp_property_teletext_common(m
       SET is GET+1
       STEP is GET+2
     */
-    if (!mpctx->demuxer->teletext)
+    if (!mpctx->demuxer || !mpctx->demuxer->teletext)
         return M_PROPERTY_UNAVAILABLE;
     if(!base_ioctl)
         return M_PROPERTY_ERROR;


More information about the MPlayer-cvslog mailing list