mpegtsdemux: add DESC_DVB_SUBTITLING descriptor for language parsing
This commit is contained in:
parent
eaf1b316b0
commit
431ea2c697
@ -948,8 +948,10 @@ gst_mpegts_demux_send_tags_for_stream (GstMpegTSDemux * demux,
|
|||||||
GstTagList *list = NULL;
|
GstTagList *list = NULL;
|
||||||
|
|
||||||
if (stream->ES_info) {
|
if (stream->ES_info) {
|
||||||
|
guint8 lang_descs[] = { DESC_ISO_639_LANGUAGE, DESC_DVB_SUBTITLING };
|
||||||
|
for (gint i = 0; i < sizeof (lang_descs); i++) {
|
||||||
guint8 *iso639_languages =
|
guint8 *iso639_languages =
|
||||||
gst_mpeg_descriptor_find (stream->ES_info, DESC_ISO_639_LANGUAGE);
|
gst_mpeg_descriptor_find (stream->ES_info, lang_descs[i]);
|
||||||
if (iso639_languages) {
|
if (iso639_languages) {
|
||||||
if (DESC_ISO_639_LANGUAGE_codes_n (iso639_languages)) {
|
if (DESC_ISO_639_LANGUAGE_codes_n (iso639_languages)) {
|
||||||
const gchar *lc;
|
const gchar *lc;
|
||||||
@ -974,6 +976,7 @@ gst_mpegts_demux_send_tags_for_stream (GstMpegTSDemux * demux,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (list) {
|
if (list) {
|
||||||
GST_DEBUG_OBJECT (demux, "Sending tags %p for pad %s:%s",
|
GST_DEBUG_OBJECT (demux, "Sending tags %p for pad %s:%s",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user