mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
funnel: Make sure to only lock the stream lock once
We also only unlock it once, and otherwise have it locked forever from this thread, causing deadlocks on shutdown later.
This commit is contained in:
parent
5571ad1260
commit
abe60a92c4
1 changed files with 4 additions and 2 deletions
|
@ -403,8 +403,10 @@ gst_funnel_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
/* If no data is coming and we receive serialized event, need to forward all sticky events.
|
||||
* Otherwise downstream has an inconsistent set of sticky events when
|
||||
* handling the new event. */
|
||||
unlock = TRUE;
|
||||
GST_PAD_STREAM_LOCK (funnel->srcpad);
|
||||
if (!unlock) {
|
||||
unlock = TRUE;
|
||||
GST_PAD_STREAM_LOCK (funnel->srcpad);
|
||||
}
|
||||
|
||||
if ((funnel->last_sinkpad == NULL) || (funnel->forward_sticky_events
|
||||
&& (funnel->last_sinkpad != pad))) {
|
||||
|
|
Loading…
Reference in a new issue