[Bug 647759] New: [bin] Element could be removed from the bin but still claim that the bin is the parent
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Apr 14 03:36:03 PDT 2011
https://bugzilla.gnome.org/show_bug.cgi?id=647759
GStreamer | gstreamer (core) | git
Summary: [bin] Element could be removed from the bin but still
claim that the bin is the parent
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: slomo at circular-chaos.org
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
There's a race in gst_bin_remove_func(), first the element is removed from the
bin with the bin/element object locks, both are released. Then the element is
unparented. During this short period of time the element still claims that the
bin is the parent.
To prevent race conditions in code that checks if the child is really a child
of the bin it is necessary to take both locks and additionally check the
UNPARENT flag of the child. This should be documented.
--
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