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:
Vincent Penquerc'h 2011-08-24 14:59:38 +01:00 committed by Sebastian Dröge
parent 4b5bfb1fd4
commit 8438bc038a

View file

@ -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 {