[Bug 609473] GstMiniObject derived classes could support storing data for bindings

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri May 6 09:34:31 PDT 2011


https://bugzilla.gnome.org/show_bug.cgi?id=609473
  GStreamer | gstreamer (core) | git

--- Comment #37 from José Alburquerque <jaalburqu at svn.gnome.org> 2011-05-06 16:34:26 UTC ---
Created an attachment (id=187366)
 --> (https://bugzilla.gnome.org/attachment.cgi?id=187366)
Minimal test case of weak referencing

Would this small test case be okay?  It runs okay for me.  This functionality
would certainly allow gstreamermm to free mini object data allocated as it is
finalized.  If you'd like, I can adapt the minimal test where appropriate (I
think in tests/check/gst/gstminiobject.c).  Sorry about the global mutex.  It's
how it's done in GObject and I see no other way of ensuring thread safety here
other than using one.  As far as I can tell, it doesn't look like the mutex is
used at all when there are no weak references.  Could the patch be accepted?  I
could also provide a 0.11 version if desired.  Thanks.

-- 
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