Don't use deprecated g_object_newv()
authorTim-Philipp Müller <tim@centricular.com>
Tue, 4 Apr 2017 16:53:39 +0000 (17:53 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 8 Apr 2017 08:49:59 +0000 (09:49 +0100)
commit519d64881fad234c9a637c0c1bcc3d8155e46b3f
tree7045718d87b4aeff3941d1da0e2fb993515b29c9
parent7699b8a1bc49f30cd9a0c300831a085516f5442e
Don't use deprecated g_object_newv()

Use g_object_new() instead which nowadays has a shortcut for the
no-properties check. It still does an extra GType check in the
function guard, but there's a pending patch to remove that
and it's hardly going to be a performance issue in practice,
even less so on a system that's compiled without run-time checks.

Alternative would be to move to the new g_object_new_properties()
with a fallback define for older glib versions, but it makes the
code look more unwieldy and doesn't seem worth it.

Fixes deprecation warnings when building against newer GLib versions.

https://bugzilla.gnome.org/show_bug.cgi?id=780903
22 files changed:
gst/gstbufferpool.c
gst/gstbus.c
gst/gstdeviceproviderfactory.c
gst/gstdynamictypefactory.c
gst/gstelementfactory.c
gst/gstplugin.c
gst/gstpluginloader.c
gst/gstregistry.c
gst/gstregistrychunks.c
gst/gsttask.c
gst/gsttaskpool.c
gst/gsttracer.c
gst/gsttracerrecord.c
gst/gsttypefind.c
libs/gst/base/gstadapter.c
libs/gst/base/gstdataqueue.c
libs/gst/base/gstindex.c
libs/gst/controller/gstinterpolationcontrolsource.c
libs/gst/controller/gstlfocontrolsource.c
libs/gst/controller/gsttriggercontrolsource.c
tests/check/gst/gstcontroller.c
tests/check/gst/gstelementfactory.c