Commit a6984176 authored by Edward Hervey's avatar Edward Hervey 🤘
Browse files

gsttaglist: Remove unused variable.

We don't need to allocate a variable if it's the return of a function call
and we only check it once.
parent 759fe345
...@@ -873,7 +873,6 @@ void ...@@ -873,7 +873,6 @@ void
gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode, gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode,
const gchar * tag, va_list var_args) const gchar * tag, va_list var_args)
{ {
GstTagInfo *info;
GQuark quark; GQuark quark;
g_return_if_fail (GST_IS_TAG_LIST (list)); g_return_if_fail (GST_IS_TAG_LIST (list));
...@@ -886,8 +885,7 @@ gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode, ...@@ -886,8 +885,7 @@ gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode,
while (tag != NULL) { while (tag != NULL) {
quark = g_quark_from_string (tag); quark = g_quark_from_string (tag);
info = gst_tag_lookup (quark); g_return_if_fail (gst_tag_lookup (quark) != NULL);
g_return_if_fail (info != NULL);
gst_tag_list_add_value_internal (list, mode, quark, va_arg (var_args, gst_tag_list_add_value_internal (list, mode, quark, va_arg (var_args,
GValue *)); GValue *));
tag = va_arg (var_args, gchar *); tag = va_arg (var_args, gchar *);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment