summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2008-10-28 04:12:18 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2008-10-28 04:12:18 +0200
commit479f5e742f22d46430fa265adfa9162f4e2ab865 (patch)
tree8450cfd34feb5b81d604101ad9ebfc7b24c1d88e /command.c
parent0d7f9f033cdd677df3b85aca45491955b87a1abc (diff)
parent97293969b40797442ec0f612b89a89ace8804561 (diff)
downloadmpv-479f5e742f22d46430fa265adfa9162f4e2ab865.tar.bz2
mpv-479f5e742f22d46430fa265adfa9162f4e2ab865.tar.xz
Merge svn changes up to r27841
Conflicts: mplayer.c
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.c b/command.c
index c1559c2d86..6f73e67a84 100644
--- a/command.c
+++ b/command.c
@@ -1958,6 +1958,8 @@ static int mp_property_teletext_page(m_option_t *prop, int action, void *arg,
tvi_handle_t *tvh = mpctx->demuxer->priv;
int result;
int val;
+ if (mpctx->demuxer->type != DEMUXER_TYPE_TV || !tvh)
+ return M_PROPERTY_UNAVAILABLE;
switch(action){
case M_PROPERTY_STEP_UP:
case M_PROPERTY_STEP_DOWN: