var_AddCallback( p_dec, "vbi-page",
RequestPage, p_sys );
+ /* Check if the Teletext track has a known "initial page". */
+ if( p_sys->i_wanted_page == 100 && p_dec->fmt_in.subs.dvb.i_id != -1 )
+ {
+ int i_wanted_magazine = p_dec->fmt_in.subs.dvb.i_id >> 16;
+ if( i_wanted_magazine == 0 )
+ i_wanted_magazine = 8;
+ p_sys->i_wanted_page = vbi_bcd2dec(p_dec->fmt_in.subs.dvb.i_id & 0xff);
+ p_sys->i_wanted_page += 100*i_wanted_magazine;
+ }
+
p_sys->b_opaque = var_CreateGetBool( p_dec, "vbi-opaque" );
var_AddCallback( p_dec, "vbi-opaque", Opaque, p_sys );