mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
discoverer: get language from other tags if we did not get it already
https://bugzilla.gnome.org/show_bug.cgi?id=639055
This commit is contained in:
parent
4b5bfb1fd4
commit
8438bc038a
1 changed files with 8 additions and 0 deletions
|
@ -749,6 +749,14 @@ collect_information (GstDiscoverer * dc, const GstStructure * st,
|
|||
|
||||
}
|
||||
|
||||
if (!info->language && ((GstDiscovererStreamInfo *) info)->tags) {
|
||||
gchar *language;
|
||||
if (gst_tag_list_get_string (((GstDiscovererStreamInfo *) info)->tags,
|
||||
GST_TAG_LANGUAGE_CODE, &language)) {
|
||||
info->language = language;
|
||||
}
|
||||
}
|
||||
|
||||
return (GstDiscovererStreamInfo *) info;
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue