mpegtsdemux: add DESC_DVB_SUBTITLING descriptor for language parsing

This commit is contained in:
Janne Grunau 2010-12-15 14:39:56 +01:00 committed by Sebastian Dröge
parent eaf1b316b0
commit 431ea2c697

View File

@ -948,8 +948,10 @@ gst_mpegts_demux_send_tags_for_stream (GstMpegTSDemux * demux,
GstTagList *list = NULL;
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 =
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 (DESC_ISO_639_LANGUAGE_codes_n (iso639_languages)) {
const gchar *lc;
@ -974,6 +976,7 @@ gst_mpegts_demux_send_tags_for_stream (GstMpegTSDemux * demux,
}
}
}
}
if (list) {
GST_DEBUG_OBJECT (demux, "Sending tags %p for pad %s:%s",