[Bug 646566] Protect against Pad-Parent disappearing

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Apr 4 07:21:12 PDT 2011


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

Wim Taymans <wim.taymans> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wim.taymans at gmail.com

--- Comment #15 from Wim Taymans <wim.taymans at gmail.com> 2011-04-04 14:21:08 UTC ---
I don't particularly think the checking is weird, just something you need to be
aware of and do.

Another option is to have a new pad flag (PAD_REF_PARENT) and when this is set,
the core automatically keeps the pad alive while doing a callback. The flag
could automatically be set when you do gst_element_add_pad().

If you want to do something for 0.11 (pass the pad as an argument) you still
need to be able to know when the parent is really gone (after a dispose) or
when the pad simply has no parent. I would also like to avoid adding the
requirement that pads always need a parent to do dataprocessing.

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