mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 05:45:58 +00:00
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:
parent
a4b16d54a0
commit
29480d006c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue