# HG changeset patch # User reimar # Date 1257779097 0 # Node ID b33846197f5cb398bc73ded2116d719cef9b4971 # Parent 2c2733d12823fc4feb7afd71739d4a7340d338f9 Make sure the teletext property stuff does not crash if no demuxer is available. diff -r 2c2733d12823 -r b33846197f5c command.c --- 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;