mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
65db2ef944
commit
472bf28b5e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue