[Bug 780903] Fails to build with -Werror against glib master, use of deprecated g_object_newv()

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Sat Apr 8 09:29:15 UTC 2017


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

Tim-Philipp Müller <t.i.m at zen.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|git master                  |1.11.91
            Summary|Fails to build with -Werror |Fails to build with -Werror
                   |against glib master         |against glib master, use of
                   |                            |deprecated g_object_newv()

--- Comment #5 from Tim-Philipp Müller <t.i.m at zen.co.uk> ---
commit 519d64881fad234c9a637c0c1bcc3d8155e46b3f
Author: Tim-Philipp Müller <tim at centricular.com>
Date:   Tue Apr 4 17:53:39 2017 +0100

    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

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


More information about the gstreamer-bugs mailing list