]> git.sesse.net Git - vlc/commitdiff
telx: ignore initial page 100
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 11 Sep 2008 01:00:02 +0000 (03:00 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 11 Sep 2008 01:00:02 +0000 (03:00 +0200)
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

modules/codec/telx.c

index 18f4d90eb16a37e3b9b16a1f29ea20995e2e7618..ebcd4467376d866111b52c02675d11e74dba1210 100644 (file)
@@ -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 )