From 969841f893d956cb0ca9f58de601d3901b87125a Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Fri, 7 Nov 2014 08:22:02 +0100 Subject: [PATCH] structure: remove conditional for G_VALUE_COLLECT_INIT This API is in glib since 2.24 and we currently require 2.32 and already use this unconditionally elsewhere. --- gst/gststructure.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gst/gststructure.c b/gst/gststructure.c index 46c97a6..3aac676 100644 --- a/gst/gststructure.c +++ b/gst/gststructure.c @@ -665,15 +665,9 @@ gst_structure_id_set_valist_internal (GstStructure * structure, GstStructureField field = { 0 }; field.name = fieldname; - type = va_arg (varargs, GType); -#ifndef G_VALUE_COLLECT_INIT - g_value_init (&field.value, type); - G_VALUE_COLLECT (&field.value, varargs, 0, &err); -#else G_VALUE_COLLECT_INIT (&field.value, type, varargs, 0, &err); -#endif if (G_UNLIKELY (err)) { g_critical ("%s", err); return; -- 2.7.4