[Bug 780903] Fails to build with -Werror against glib master

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Apr 4 16:57:55 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=780903

--- Comment #4 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
Created attachment 349253
  --> https://bugzilla.gnome.org/attachment.cgi?id=349253&action=edit
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 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


For duplicate type check removal see bug #780908.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.


More information about the gstreamer-bugs mailing list