[Bug 658924] [patch] fix gstbin's check of inner elements

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Sep 13 13:46:20 PDT 2011

  GStreamer | gstreamer (core) | 0.10.31

--- Comment #2 from Stas Sergeev <stsp at list.ru> 2011-09-13 20:46:12 UTC ---
Yes, one particular revision of the
plugin I am writing here, locks up gstreamer
without this patch. The lockup happens on the
next line,
GST_OBJECT_LOCK (peer_element);
when the bin is trying to lock itself by mistake.
But later I created this patch:
and dropped the hierarchy hack from my plugin,
so the final version will not depend on that.

Suppose you have a bin N with 2 elements: A and B.
A have "src" and B have "sink".
You create a ghostpad G for A.src
You add G to N
You then link G to B.sink - hierarchy violation
N looks for the peer of B.sink, finds G, whose
parent is N - deadlock trying to lock N the second time.

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