[MPlayer-cvslog] r27840 - trunk/command.c
faust3
subversion at mplayerhq.hu
Mon Oct 27 23:44:09 CET 2008
Author: faust3
Date: Mon Oct 27 23:44:09 2008
New Revision: 27840
Log:
Disallow the modification of teletext properties when the tv demuxer is
not active.
Modified:
trunk/command.c
Modified: trunk/command.c
==============================================================================
--- trunk/command.c (original)
+++ trunk/command.c Mon Oct 27 23:44:09 2008
@@ -1949,6 +1949,8 @@ static int mp_property_teletext_page(m_o
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:
More information about the MPlayer-cvslog
mailing list