[Bug 796895] pad: Ensure that the pad is blocked for IDLE probes if they are called from the streaming thread too

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Jul 30 15:55:40 UTC 2018


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

--- Comment #1 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
Created attachment 373221
  --> https://bugzilla.gnome.org/attachment.cgi?id=373221&action=edit
pad: Ensure that the pad is blocked for IDLE probes if they are called from the
streaming thread too

IDLE probes that are directly called when being added will increase /
decrease the "number of IDLE probes running" counter around the call,
but when running from the streaming thread this won't happen.

This has the effect that when running from a streaming thread it is
possible to push serialized events or data out of the pad without
problems, but otherwise it would deadlock because serialized data would
wait for the IDLE probe to finish first (it is blocking after all!).

With this change it will now always consistently deadlock instead of
just every once in a while, which should make it obvious why this
happens and prevent racy deadlocks in application code.

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