mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
dashdemux: improve detection of stream language
Improved the detection of stream's language if the AdaptationSet contains more than 1 ContentComponent https://bugzilla.gnome.org/show_bug.cgi?id=752367
This commit is contained in:
parent
7443f35249
commit
e7745a5720
1 changed files with 10 additions and 3 deletions
|
@ -556,9 +556,16 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux)
|
||||||
lang = adp_set->lang;
|
lang = adp_set->lang;
|
||||||
|
|
||||||
/* Fallback to the language in ContentComponent node */
|
/* Fallback to the language in ContentComponent node */
|
||||||
if (lang == NULL && g_list_length (adp_set->ContentComponents) == 1) {
|
if (lang == NULL) {
|
||||||
GstContentComponentNode *cc_node = adp_set->ContentComponents->data;
|
GList *it;
|
||||||
lang = cc_node->lang;
|
|
||||||
|
for (it = adp_set->ContentComponents; it; it = it->next) {
|
||||||
|
GstContentComponentNode *cc_node = it->data;
|
||||||
|
if (cc_node->lang) {
|
||||||
|
lang = cc_node->lang;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue