Commit 3729540b authored by Daniel Kamil Kozar's avatar Daniel Kamil Kozar Committed by Jean-Paul Saman

add a dump function for SL descriptor to dvbinfo

Signed-off-by: default avatarJean-Paul Saman <jpsaman@videolan.org>
parent 9178a009
...@@ -1077,6 +1077,12 @@ static void DumpIODDescriptor(const void *p_descriptor) ...@@ -1077,6 +1077,12 @@ static void DumpIODDescriptor(const void *p_descriptor)
p_iod_dr->i_initial_object_descriptor); p_iod_dr->i_initial_object_descriptor);
} }
static void DumpSLDescriptor(const void *p_descriptor)
{
const dvbpsi_mpeg_sl_dr_t *p_sl_dr = p_descriptor;
printf("ES_ID : 0x%04" PRIx16 "\n", p_sl_dr->i_es_id);
}
static void DumpContentLabellingDescriptor(const void *p_descriptor) static void DumpContentLabellingDescriptor(const void *p_descriptor)
{ {
const dvbpsi_mpeg_content_labelling_dr_t *p_content_lbl_dr = p_descriptor; const dvbpsi_mpeg_content_labelling_dr_t *p_content_lbl_dr = p_descriptor;
...@@ -1839,6 +1845,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor) ...@@ -1839,6 +1845,10 @@ static void DumpDescriptor(dvbpsi_descriptor_t *p_descriptor)
p_decoded = dvbpsi_decode_mpeg_iod_dr(p_descriptor); p_decoded = dvbpsi_decode_mpeg_iod_dr(p_descriptor);
dump_dr_fn = DumpIODDescriptor; dump_dr_fn = DumpIODDescriptor;
break; break;
case 0x1e:
p_decoded = dvbpsi_decode_mpeg_sl_dr(p_descriptor);
dump_dr_fn = DumpSLDescriptor;
break;
case 0x24: case 0x24:
p_decoded = dvbpsi_decode_mpeg_content_labelling_dr(p_descriptor); p_decoded = dvbpsi_decode_mpeg_content_labelling_dr(p_descriptor);
dump_dr_fn = DumpContentLabellingDescriptor; dump_dr_fn = DumpContentLabellingDescriptor;
......
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