emotion gstreamer1: Also handle DATE_TIME tag

This commit is contained in:
Sebastian Dröge 2014-01-12 20:44:41 +01:00
parent 3c53aea9a4
commit a39f9ca579
1 changed files with 14 additions and 0 deletions

View File

@ -1248,6 +1248,20 @@ _for_each_tag(GstTagList const* list,
break;
}
if (!strcmp(tag, GST_TAG_DATE_TIME))
{
gchar *str;
const GValue *date;
g_free(ev->metadata->year);
date = gst_tag_list_get_value_index(list, GST_TAG_DATE_TIME, 0);
if (date)
str = g_strdup_value_contents(date);
else
str = NULL;
ev->metadata->year = str;
break;
}
if (!strcmp(tag, GST_TAG_TRACK_NUMBER))
{
gchar *str;