mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-28 17:06:49 +00:00
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.
This commit is contained in:
parent
ddc2fa2dab
commit
969841f893
1 changed files with 0 additions and 6 deletions
|
@ -665,15 +665,9 @@ gst_structure_id_set_valist_internal (GstStructure * structure,
|
||||||
GstStructureField field = { 0 };
|
GstStructureField field = { 0 };
|
||||||
|
|
||||||
field.name = fieldname;
|
field.name = fieldname;
|
||||||
|
|
||||||
type = va_arg (varargs, GType);
|
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);
|
G_VALUE_COLLECT_INIT (&field.value, type, varargs, 0, &err);
|
||||||
#endif
|
|
||||||
if (G_UNLIKELY (err)) {
|
if (G_UNLIKELY (err)) {
|
||||||
g_critical ("%s", err);
|
g_critical ("%s", err);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue