[gstreamer-bugs] [Bug 324818] New: gst_registry_get_default doesn't sink newly created registry

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Thu Dec 22 08:01:04 PST 2005


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=324818
 GStreamer | gstreamer (core) | Ver: 0.10.0

           Summary: gst_registry_get_default doesn't sink newly created
                    registry
           Product: GStreamer
           Version: 0.10.0
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: kaffeetisch at gmx.de
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


When gst_registry_get_default finds that there's no global default registry
yet, it creates a new one via g_object_new.  Since GstRegistry is a GstObject,
it inherits the floating reference semantics.  I use those semantics in the
Perl bindings to get memory management right without having to worry whether or
not I own the returned object.  In the case of gst_registry_get_default, this
breaks though, since gst_registry_get_default doesn't sink the created
registry.

I attach a patch (against HEAD) that changes gst_registry_get_default to ref
and sink the new registry.


-- 
Configure bugmail: http://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