[vlc-devel] commit: telx: ignore initial page 100 (Derk-Jan Hartman )
git version control
git at videolan.org
Thu Sep 11 15:26:02 CEST 2008
vlc | branch: 0.9-bugfix | Derk-Jan Hartman <hartman at videolan.org> | Thu Sep 11 03:00:02 2008 +0200| [680b9da7d86adb9978c2fe3c1d5a551edee15d5d] | committer: Derk-Jan Hartman
telx: ignore initial page 100
If the TS demux signals initial page 100, then this inital page is likely NOT the subtitle page. Since we can only really handle subtitles, let the teletext decoder figure out which pages are subtitles on its own.
Per request of Marian Durkovic
(cherry picked from commit 1bc0649628075569c7b6be7c6361c7d88b7005fe)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=680b9da7d86adb9978c2fe3c1d5a551edee15d5d
---
modules/codec/telx.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/codec/telx.c b/modules/codec/telx.c
index 20b5a23..30244d2 100644
--- a/modules/codec/telx.c
+++ b/modules/codec/telx.c
@@ -195,7 +195,8 @@ static int Open( vlc_object_t *p_this )
var_Create( p_dec, "telx-override-page",
VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
var_Get( p_dec, "telx-override-page", &val );
- if( val.i_int == -1 && p_dec->fmt_in.subs.dvb.i_id != -1 )
+ if( val.i_int == -1 && p_dec->fmt_in.subs.dvb.i_id != -1
+ && p_dec->fmt_in.subs.dvb.i_id != (1<<16) ) /* ignore if TS demux wants page 100 (unlikely to be sub) */
{
p_sys->i_wanted_magazine = p_dec->fmt_in.subs.dvb.i_id >> 16;
if( p_sys->i_wanted_magazine == 0 )
More information about the vlc-devel
mailing list