Commit 68f2ca7b authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: translate teletext magazine number 0 (means 8)

parent c7a82a0c
...@@ -1419,7 +1419,8 @@ static void DumpTeletextDescriptor(const void *p_descriptor) ...@@ -1419,7 +1419,8 @@ static void DumpTeletextDescriptor(const void *p_descriptor)
p_teletext_descriptor->p_pages[i].i_iso6392_language_code[1], p_teletext_descriptor->p_pages[i].i_iso6392_language_code[1],
p_teletext_descriptor->p_pages[i].i_iso6392_language_code[2]); p_teletext_descriptor->p_pages[i].i_iso6392_language_code[2]);
printf("\t\tteletext type : %d\n", p_teletext_descriptor->p_pages[i].i_teletext_type); printf("\t\tteletext type : %d\n", p_teletext_descriptor->p_pages[i].i_teletext_type);
printf("\t\tteletext magazine : %d\n", p_teletext_descriptor->p_pages[i].i_teletext_magazine_number); printf("\t\tteletext magazine : %d\n", p_teletext_descriptor->p_pages[i].i_teletext_magazine_number ?
p_teletext_descriptor->p_pages[i].i_teletext_magazine_number : 8 );
printf("\t\tteletext page : %d\n", p_teletext_descriptor->p_pages[i].i_teletext_page_number); printf("\t\tteletext page : %d\n", p_teletext_descriptor->p_pages[i].i_teletext_page_number);
} }
} }
...@@ -2211,7 +2212,7 @@ static void handle_atsc_MGT(void *p_data, dvbpsi_atsc_mgt_t *p_mgt) ...@@ -2211,7 +2212,7 @@ static void handle_atsc_MGT(void *p_data, dvbpsi_atsc_mgt_t *p_mgt)
ts_atsc_eit_t *p = calloc(1, sizeof(ts_atsc_eit_t)); ts_atsc_eit_t *p = calloc(1, sizeof(ts_atsc_eit_t));
if (p) if (p)
{ {
/* PMT */ /* EIT */
p->handle = dvbpsi_new(&dvbpsi_message, p_stream->level); p->handle = dvbpsi_new(&dvbpsi_message, p_stream->level);
if (p->handle == NULL) if (p->handle == NULL)
{ {
......
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