changeset 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 2c2733d12823
children ed46f577f157
files command.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;