summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-09 15:04:57 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-11-09 15:04:57 +0000
commit7f8d660be5da7f676f7c6f7bb1b4dff6ca9a0e62 (patch)
tree3e9a72388a5de8718e20fb61f5b76f2ab535d5fa /command.c
parent87a4e870b706f45f348d28e3d2c7749072344392 (diff)
downloadmpv-7f8d660be5da7f676f7c6f7bb1b4dff6ca9a0e62.tar.bz2
mpv-7f8d660be5da7f676f7c6f7bb1b4dff6ca9a0e62.tar.xz
Make sure the teletext property stuff does not crash if no demuxer is available.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29862 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-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;