mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
fdsink: do not supress legitimate errors when unlocking
Instead, only wait_preroll when writev_* returns FLUSHING Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/476>
This commit is contained in:
parent
2812064734
commit
742291c799
1 changed files with 2 additions and 2 deletions
|
@ -264,7 +264,7 @@ gst_fd_sink_render_list (GstBaseSink * bsink, GstBufferList * buffer_list)
|
|||
sink->current_pos += bytes_written;
|
||||
skip += bytes_written;
|
||||
|
||||
if (!sink->unlock)
|
||||
if (!sink->unlock || ret != GST_FLOW_FLUSHING)
|
||||
break;
|
||||
|
||||
ret = gst_base_sink_wait_preroll (GST_BASE_SINK (sink));
|
||||
|
@ -299,7 +299,7 @@ gst_fd_sink_render (GstBaseSink * bsink, GstBuffer * buffer)
|
|||
sink->current_pos += bytes_written;
|
||||
skip += bytes_written;
|
||||
|
||||
if (!sink->unlock)
|
||||
if (!sink->unlock || ret != GST_FLOW_FLUSHING)
|
||||
break;
|
||||
|
||||
ret = gst_base_sink_wait_preroll (GST_BASE_SINK (sink));
|
||||
|
|
Loading…
Reference in a new issue