validate:media-descriptor-writer: cleanup get tag code

https://bugzilla.gnome.org/show_bug.cgi?id=750609
This commit is contained in:
Wonchul Lee 2015-06-09 11:14:58 +09:00 committed by Thibault Saunier
parent 8b38d4745b
commit de6b24d905

View file

@ -514,6 +514,7 @@ gst_media_descriptor_writer_new_discover (GstValidateRunner * runner,
GstDiscovererStreamInfo *streaminfo = NULL;
GstMediaDescriptorWriter *writer = NULL;
GstMediaDescriptor *media_descriptor;
const GstTagList *tags;
discoverer = gst_discoverer_new (GST_SECOND * 60, err);
@ -542,9 +543,9 @@ gst_media_descriptor_writer_new_discover (GstValidateRunner * runner,
if (handle_g_logs)
gst_validate_reporter_set_handle_g_logs (GST_VALIDATE_REPORTER (writer));
if (gst_discoverer_info_get_tags (info))
gst_media_descriptor_writer_add_taglist (writer,
gst_discoverer_info_get_tags (info));
tags = gst_discoverer_info_get_tags (info);
if (tags)
gst_media_descriptor_writer_add_taglist (writer, tags);
streaminfo = gst_discoverer_info_get_stream_info (info);