mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
jitterbuffer: release lock before pushing EOS
Make sure we release the jitterbuffer lock before we start pushing out data because else we might deadlock.
This commit is contained in:
parent
918c9448f2
commit
cbad89600c
1 changed files with 1 additions and 1 deletions
|
@ -1653,8 +1653,8 @@ do_eos:
|
||||||
GST_DEBUG_OBJECT (jitterbuffer, "We are EOS, pushing EOS downstream");
|
GST_DEBUG_OBJECT (jitterbuffer, "We are EOS, pushing EOS downstream");
|
||||||
priv->srcresult = GST_FLOW_UNEXPECTED;
|
priv->srcresult = GST_FLOW_UNEXPECTED;
|
||||||
gst_pad_pause_task (priv->srcpad);
|
gst_pad_pause_task (priv->srcpad);
|
||||||
gst_pad_push_event (priv->srcpad, gst_event_new_eos ());
|
|
||||||
JBUF_UNLOCK (priv);
|
JBUF_UNLOCK (priv);
|
||||||
|
gst_pad_push_event (priv->srcpad, gst_event_new_eos ());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
do_npt_stop:
|
do_npt_stop:
|
||||||
|
|
Loading…
Reference in a new issue