Commit 0166fd2d authored by Laurent Aimar's avatar Laurent Aimar Committed by Derk-Jan Hartman

Do not ignore teletext initial page (close #1997).

Be carefull, it adds a new translated strings.
(cherry picked from commit 664fb723)
parent 7a5d48c8
...@@ -3377,8 +3377,9 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt ) ...@@ -3377,8 +3377,9 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
for( n = 0; n < sub->i_pages_number; n++ ) for( n = 0; n < sub->i_pages_number; n++ )
{ {
dvbpsi_teletextpage_t *p_page = &sub->p_pages[n]; dvbpsi_teletextpage_t *p_page = &sub->p_pages[n];
if( (p_page->i_teletext_type == 0x2) if( p_page->i_teletext_type == 0x1 ||
|| (p_page->i_teletext_type == 0x5) ) p_page->i_teletext_type == 0x2 ||
p_page->i_teletext_type == 0x5 )
{ {
ts_es_t *p_es; ts_es_t *p_es;
...@@ -3416,6 +3417,16 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt ) ...@@ -3416,6 +3417,16 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
} }
switch( p_page->i_teletext_type ) switch( p_page->i_teletext_type )
{ {
case 0x1:
p_es->fmt.psz_description =
strdup(_("Teletext initial page"));
msg_Dbg( p_demux,
" * sub lan=%s page=%d%x",
p_es->fmt.psz_language,
p_page->i_teletext_magazine_number,
p_page->i_teletext_page_number );
break;
case 0x2: case 0x2:
p_es->fmt.psz_description = p_es->fmt.psz_description =
strdup(_("Teletext subtitles")); strdup(_("Teletext subtitles"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment