Commit 539473b9 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: dump parental rating descriptor

parent 6ed78a23
...@@ -1392,6 +1392,19 @@ static void DumpContentDescriptor(const void *p_descriptor) ...@@ -1392,6 +1392,19 @@ static void DumpContentDescriptor(const void *p_descriptor)
} }
} }
/*****************************************************************************
* DumpParentalRatingDescriptor
*****************************************************************************/
static void DumpParentalRatingDescriptor(const void *p_descriptor)
{
const dvbpsi_dvb_parental_rating_dr_t *p_parental_rating_descriptor = p_descriptor;
printf("Parental ratings\n");
for (int i = 0; i < p_parental_rating_descriptor->i_ratings_number; i++) {;
printf("\tCountry : %d\n", p_parental_rating_descriptor->p_parental_rating[i].i_country_code);
printf("\tRating : %d\n", p_parental_rating_descriptor->p_parental_rating[i].i_rating);
}
}
/***************************************************************************** /*****************************************************************************
* DumpSubtitleDescriptor * DumpSubtitleDescriptor
*****************************************************************************/ *****************************************************************************/
...@@ -1983,6 +1996,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor) ...@@ -1983,6 +1996,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded = dvbpsi_decode_dvb_content_dr(p_descriptor); p_decoded = dvbpsi_decode_dvb_content_dr(p_descriptor);
dump_dr_fn = DumpContentDescriptor; dump_dr_fn = DumpContentDescriptor;
break; break;
case 0x55:
p_decoded = dvbpsi_decode_dvb_parental_rating_dr(p_descriptor);
dump_dr_fn = DumpParentalRatingDescriptor;
break;
case 0x59: case 0x59:
p_decoded = dvbpsi_decode_dvb_subtitling_dr(p_descriptor); p_decoded = dvbpsi_decode_dvb_subtitling_dr(p_descriptor);
dump_dr_fn = DumpSubtitleDescriptor; dump_dr_fn = DumpSubtitleDescriptor;
......
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