From 79570f49dcc177c5c36302cb7ab8aec84d50f47c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 25 Nov 2010 16:06:07 +0100 Subject: [PATCH] basesink: perform wait_preroll in a while loop We need to continue calling wait_preroll() as long as the need_preroll variable is true. --- libs/gst/base/gstbasesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/gst/base/gstbasesink.c b/libs/gst/base/gstbasesink.c index cba028e..cf7ea34 100644 --- a/libs/gst/base/gstbasesink.c +++ b/libs/gst/base/gstbasesink.c @@ -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; -- 2.7.4