diff command.c @ 29820:b33846197f5c

Make sure the teletext property stuff does not crash if no demuxer is available.
author reimar
date Mon, 09 Nov 2009 15:04:57 +0000
parents e255f9571156
children 415169f556ed
line wrap: on
line diff
--- a/command.c	Mon Nov 09 14:12:14 2009 +0000
+++ b/command.c	Mon Nov 09 15:04:57 2009 +0000
@@ -1888,7 +1888,7 @@
       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;