validate: g_object_newv() is deprecated

Since glib version 2.54, g_object_newv() is deprecated.

This patch changes that function with a simpler g_object_new(),
since no properties are set.

https://bugzilla.gnome.org/show_bug.cgi?id=782860
This commit is contained in:
Víctor Manuel Jáquez Leal 2017-05-20 12:26:31 +02:00
parent a4b16d54a0
commit 29480d006c

View file

@ -73,7 +73,7 @@ gst_validate_registry_get (void)
g_mutex_lock (&_gst_validate_registry_mutex);
if (G_UNLIKELY (!_gst_validate_registry_default)) {
_gst_validate_registry_default = g_object_newv (GST_TYPE_REGISTRY, 0, NULL);
_gst_validate_registry_default = g_object_new (GST_TYPE_REGISTRY, NULL);
gst_object_ref_sink (GST_OBJECT_CAST (_gst_validate_registry_default));
}
registry = _gst_validate_registry_default;