mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 04:52:28 +00:00
mpegts: add parsing stream identifier
Signed-off-by: Stefan Ringel <linuxtv@stefanringel.de> https://bugzilla.gnome.org/show_bug.cgi?id=727187
This commit is contained in:
parent
2e051cf412
commit
f8b7a130cc
2 changed files with 27 additions and 5 deletions
|
@ -45,7 +45,6 @@
|
||||||
* * GST_MTS_DESC_DVB_DATA_BROADCAST_ID
|
* * GST_MTS_DESC_DVB_DATA_BROADCAST_ID
|
||||||
* * GST_MTS_DESC_DVB_DATA_BROADCAST
|
* * GST_MTS_DESC_DVB_DATA_BROADCAST
|
||||||
* * GST_MTS_DESC_DVB_CAROUSEL_IDENTIFIER
|
* * GST_MTS_DESC_DVB_CAROUSEL_IDENTIFIER
|
||||||
* * GST_MTS_DESC_DVB_STREAM_IDENTIFIER
|
|
||||||
* * GST_MTS_DESC_DVB_FREQUENCY_LIST
|
* * GST_MTS_DESC_DVB_FREQUENCY_LIST
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -673,6 +672,33 @@ gst_mpegts_descriptor_parse_dvb_component (const GstMpegTsDescriptor
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* GST_MTS_DESC_DVB_STREAM_IDENTIFIER (0x52) */
|
||||||
|
/**
|
||||||
|
* gst_mpegts_descriptor_parse_dvb_stream_identifier:
|
||||||
|
* @descriptor: a %GST_MTS_DESC_DVB_CONTENT #GstMpegTsDescriptor
|
||||||
|
* @component_tag: (out) (transfer none): the component tag
|
||||||
|
*
|
||||||
|
* Extracts the component tag from @descriptor.
|
||||||
|
*
|
||||||
|
* Returns: %TRUE if the parsing happended correctly, else %FALSE.
|
||||||
|
*/
|
||||||
|
gboolean
|
||||||
|
gst_mpegts_descriptor_parse_dvb_stream_identifier (const GstMpegTsDescriptor
|
||||||
|
* descriptor, guint8 * component_tag)
|
||||||
|
{
|
||||||
|
guint8 *data;
|
||||||
|
|
||||||
|
g_return_val_if_fail (descriptor != NULL && component_tag != NULL, FALSE);
|
||||||
|
__common_desc_checks_exact (descriptor, GST_MTS_DESC_DVB_STREAM_IDENTIFIER,
|
||||||
|
1, FALSE);
|
||||||
|
|
||||||
|
data = (guint8 *) descriptor->data + 2;
|
||||||
|
|
||||||
|
*component_tag = *data;
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
/* GST_MTS_DESC_DVB_CONTENT (0x54) */
|
/* GST_MTS_DESC_DVB_CONTENT (0x54) */
|
||||||
static void
|
static void
|
||||||
_gst_mpegts_content_free (GstMpegTsContent * content)
|
_gst_mpegts_content_free (GstMpegTsContent * content)
|
||||||
|
|
|
@ -66,10 +66,6 @@
|
||||||
* * GST_MTS_DESC_DVB_DATA_BROADCAST_ID
|
* * GST_MTS_DESC_DVB_DATA_BROADCAST_ID
|
||||||
* * GST_MTS_DESC_DVB_DATA_BROADCAST
|
* * GST_MTS_DESC_DVB_DATA_BROADCAST
|
||||||
* * GST_MTS_DESC_DVB_CAROUSEL_IDENTIFIER
|
* * GST_MTS_DESC_DVB_CAROUSEL_IDENTIFIER
|
||||||
* * GST_MTS_DESC_DVB_STREAM_IDENTIFIER
|
|
||||||
* * GST_MTS_DESC_DVB_EXTENDED_EVENT
|
|
||||||
* * GST_MTS_DESC_DVB_COMPONENT
|
|
||||||
* * GST_MTS_DESC_DVB_TERRESTRIAL_DELIVERY_SYSTEM
|
|
||||||
* * GST_MTS_DESC_DVB_FREQUENCY_LIST
|
* * GST_MTS_DESC_DVB_FREQUENCY_LIST
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue