From 8438bc038a2a4cf920f017ec290f4335761eb4b1 Mon Sep 17 00:00:00 2001 From: Vincent Penquerc'h Date: Wed, 24 Aug 2011 14:59:38 +0100 Subject: [PATCH] discoverer: get language from other tags if we did not get it already https://bugzilla.gnome.org/show_bug.cgi?id=639055 --- gst-libs/gst/pbutils/gstdiscoverer.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 {