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:
Wim Taymans 2009-04-15 17:25:02 +02:00 committed by Tim-Philipp Müller
parent 918c9448f2
commit cbad89600c

View file

@ -1653,8 +1653,8 @@ do_eos:
GST_DEBUG_OBJECT (jitterbuffer, "We are EOS, pushing EOS downstream");
priv->srcresult = GST_FLOW_UNEXPECTED;
gst_pad_pause_task (priv->srcpad);
gst_pad_push_event (priv->srcpad, gst_event_new_eos ());
JBUF_UNLOCK (priv);
gst_pad_push_event (priv->srcpad, gst_event_new_eos ());
return;
}
do_npt_stop: