From 472bf28b5ec3208ee0ba5fc3801dc49f631c8588 Mon Sep 17 00:00:00 2001 From: faust3 Date: Mon, 27 Oct 2008 22:44:09 +0000 Subject: Disallow the modification of teletext properties when the tv demuxer is not active. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27840 b3059339-0415-0410-9bf9-f77b7e298cf2 --- command.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'command.c') diff --git a/command.c b/command.c index 0ed2b759bb..25b9231b1b 100644 --- a/command.c +++ b/command.c @@ -1949,6 +1949,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: -- cgit v1.2.3