[Bug 646566] Protect against Pad-Parent disappearing

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Apr 8 06:28:02 PDT 2011


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

--- Comment #21 from Sebastian Dröge <slomo at circular-chaos.org> 2011-04-08 13:27:56 UTC ---
I've committed all these patches now until we find a better solution. This way
the races are at least fixed in the next release and we can find a perfect
solution without any pressure and possibly using a suboptimal solution.

IMHO the best solution for this would be to
a) add a GstObject *parent parameter to all pad callbacks and
b) add a flag to GstPad that you don't want to have your callback called if
there's no parent (and by default that flag is disabled)

For this we have to wait until 0.11 though because it's an API change.

b) might be possible to do in 0.10 by taking a reference of the parent before
calling the callbacks

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