[Bug 679286] [0.11] gst_element_get_bus() causes GObject asserts in py-gi

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Jul 9 05:19:11 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=679286
  GStreamer | gstreamer (core) | 0.11.x

Tim-Philipp Müller <t.i.m> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|HEAD                        |0.11.x

--- Comment #1 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2012-07-09 12:19:07 UTC ---
"Fixed":

commit c0c79188ca5d9f0a2d13ab3940a7e4977410cdca
Author: Tim-Philipp Müller <tim at centricular.net>
Date:   Tue Jul 3 00:07:11 2012 +0100

    bus, clock: make sure these never have a floating ref

    Clear the initial floating ref in the init function for
    busses and clocks. These objects can be set on multiple
    elements, so there's no clear parent-child relationship
    here. Ideally we'd just not make them derive from
    GInitiallyUnowned at all, but since we want to keep
    using GstObject features for debugging, we'll just do
    it like this.

    This should also fix some problems with bindings, which
    seem to get confused when they get floating refs from
    non-constructor functions (or functions annotated to
    have a 'transfer full' return type). This works now:

    from gi.repository import GObject, Gst

    GObject.threads_init()
    Gst.init(None)

    pipeline=Gst.Pipeline()
    bus = pipeline.get_bus()
    pipeline.set_state(Gst.State.NULL)
    del pipeline;

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

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list