diff --git a/gst-libs/gst/pbutils/gstdiscoverer.c b/gst-libs/gst/pbutils/gstdiscoverer.c index a8240203f8..ec64924aa2 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.c +++ b/gst-libs/gst/pbutils/gstdiscoverer.c @@ -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 {