Commit 30f89686 authored by Jean-Paul Saman's avatar Jean-Paul Saman

dvbinfo: dump descriptors 0x4c, 0x4f and 0x53.

parent aca15c87
...@@ -904,6 +904,16 @@ static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_d ...@@ -904,6 +904,16 @@ static void DumpStreamIdentifierDescriptor(dvbpsi_stream_identifier_dr_t* p_si_d
printf("Component tag: %d\n", p_si_descriptor->i_component_tag); printf("Component tag: %d\n", p_si_descriptor->i_component_tag);
} }
/*****************************************************************************
* DumpCAIdentifierDescriptor
*****************************************************************************/
static void DumpCAIdentifierDescriptor(dvbpsi_ca_identifier_dr_t *p_ca_descriptor)
{
printf("CA system id\n");
for(int i = 0; i < p_ca_descriptor->i_number; i++ )
printf("\t%d: %d\n", i, p_ca_descriptor->p_system[i].i_ca_system_id);
}
/***************************************************************************** /*****************************************************************************
* DumpContentDescriptor * DumpContentDescriptor
*****************************************************************************/ *****************************************************************************/
...@@ -1219,6 +1229,25 @@ static void DumpAACDescriptor(dvbpsi_aac_dr_t *p_aac_descriptor) ...@@ -1219,6 +1229,25 @@ static void DumpAACDescriptor(dvbpsi_aac_dr_t *p_aac_descriptor)
printf("\tadditional info bytes: %d\n", p_aac_descriptor->i_additional_info_length); printf("\tadditional info bytes: %d\n", p_aac_descriptor->i_additional_info_length);
} }
/*****************************************************************************
* DumpTimeShiftedServiceDescriptor
*****************************************************************************/
static void DumpTimeShiftedServiceDescriptor(dvbpsi_tshifted_service_dr_t *p_ts_service)
{
printf("Time Shifted Service\n");
printf("\treference service id:%d", p_ts_service->i_ref_service_id);
}
/*****************************************************************************
* DumpTimeShiftedEventDescriptor
*****************************************************************************/
static void DumpTimeShiftedEventDescriptor(dvbpsi_tshifted_ev_dr_t *p_ts_event)
{
printf("Time Shifted Event");
printf("\treference service id:%d", p_ts_event->i_ref_service_id);
printf("\treference event id:%d", p_ts_event->i_ref_event_id);
}
/***************************************************************************** /*****************************************************************************
* DumpCUEIdentifierDescriptor * DumpCUEIdentifierDescriptor
*****************************************************************************/ *****************************************************************************/
...@@ -1410,9 +1439,18 @@ static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor) ...@@ -1410,9 +1439,18 @@ static void DumpDescriptors(const char* str, dvbpsi_descriptor_t* p_descriptor)
case 0x0e: case 0x0e:
DumpMaxBitrateDescriptor(dvbpsi_DecodeMaxBitrateDr(p_descriptor)); DumpMaxBitrateDescriptor(dvbpsi_DecodeMaxBitrateDr(p_descriptor));
break; break;
case 0x4c:
DumpTimeShiftedServiceDescriptor(dvbpsi_DecodeTimeShiftedServiceDr(p_descriptor));
break;
case 0x4f:
DumpTimeShiftedEventDescriptor(dvbpsi_DecodeTimeShiftedEventDr(p_descriptor));
break;
case 0x52: case 0x52:
DumpStreamIdentifierDescriptor(dvbpsi_DecodeStreamIdentifierDr(p_descriptor)); DumpStreamIdentifierDescriptor(dvbpsi_DecodeStreamIdentifierDr(p_descriptor));
break; break;
case 0x53:
DumpCAIdentifierDescriptor(dvbpsi_DecodeCAIdentifierDr(p_descriptor));
break;
case 0x54: case 0x54:
DumpContentDescriptor(dvbpsi_DecodeContentDr(p_descriptor)); DumpContentDescriptor(dvbpsi_DecodeContentDr(p_descriptor));
break; break;
......
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