mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 08:46:40 +00:00
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:
parent
a0cb088284
commit
79570f49dc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue