[Bug 752213] tee: Avoid race condition while forwarding sticky events

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Apr 12 11:10:40 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=752213

--- Comment #41 from Miguel París Díaz <mparisdiaz at gmail.com> ---
Yes, but this is the point and the race condition that we want to solve.
Forwarding sticky events before adding the src pad does not ensure that this
pad has the caps, because the caps can arrive between forwarding sticky events
(probably any event) and the pad is added, so we are in the same situation.
The only way of ensuring this is that forwarding sticky events and adding the
pad was done in a critical section.

Anyway, what could happen if the src pad does not have the caps until *just
before* a new event or a buffer arrives to the sink pad?

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