diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-09 15:04:57 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-11-09 15:04:57 +0000 |
commit | 7f8d660be5da7f676f7c6f7bb1b4dff6ca9a0e62 (patch) | |
tree | 3e9a72388a5de8718e20fb61f5b76f2ab535d5fa /command.c | |
parent | 87a4e870b706f45f348d28e3d2c7749072344392 (diff) | |
download | mpv-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |