summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 508b6f546f..bfdfe31bd4 100644
--- a/command.c
+++ b/command.c
@@ -1888,7 +1888,7 @@ static int mp_property_teletext_common(m_option_t * prop, int action, void *arg,
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;