basesink: perform wait_preroll in a while loop

We need to continue calling wait_preroll() as long as the need_preroll variable
is true.
This commit is contained in:
Wim Taymans 2010-11-25 16:06:07 +01:00
parent a0cb088284
commit 79570f49dc

View file

@ -2288,7 +2288,7 @@ gst_base_sink_wait_eos (GstBaseSink * sink, GstClockTime time,
GST_DEBUG_OBJECT (sink, "checking preroll");
/* first wait for the playing state before we can continue */
if (G_UNLIKELY (sink->need_preroll)) {
while (G_UNLIKELY (sink->need_preroll)) {
ret = gst_base_sink_wait_preroll (sink);
if ((ret != GST_FLOW_OK) && (ret != GST_FLOW_STEP))
goto flushing;