mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
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.
This commit is contained in:
parent
759fe3452a
commit
a69841761b
1 changed files with 1 additions and 3 deletions
|
@ -873,7 +873,6 @@ void
|
|||
gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode,
|
||||
const gchar * tag, va_list var_args)
|
||||
{
|
||||
GstTagInfo *info;
|
||||
GQuark quark;
|
||||
|
||||
g_return_if_fail (GST_IS_TAG_LIST (list));
|
||||
|
@ -886,8 +885,7 @@ gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode,
|
|||
|
||||
while (tag != NULL) {
|
||||
quark = g_quark_from_string (tag);
|
||||
info = gst_tag_lookup (quark);
|
||||
g_return_if_fail (info != NULL);
|
||||
g_return_if_fail (gst_tag_lookup (quark) != NULL);
|
||||
gst_tag_list_add_value_internal (list, mode, quark, va_arg (var_args,
|
||||
GValue *));
|
||||
tag = va_arg (var_args, gchar *);
|
||||
|
|
Loading…
Reference in a new issue