mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 17:51:16 +00:00
downloadbuffer: send EOS in push mode
gst_download_buffer_read_buffer() returns FLOW_EOS but it was not handled in the 'out_flushing' goto block which uses srcresult, so EOS was not sent downstream. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7128>
This commit is contained in:
parent
894bef7a1d
commit
3b47b87038
1 changed files with 3 additions and 1 deletions
|
@ -1325,8 +1325,10 @@ gst_download_buffer_loop (GstPad * pad)
|
|||
GST_DOWNLOAD_BUFFER_MUTEX_LOCK_CHECK (dlbuf, dlbuf->srcresult, out_flushing);
|
||||
|
||||
ret = gst_download_buffer_read_buffer (dlbuf, -1, -1, &buffer);
|
||||
if (ret != GST_FLOW_OK)
|
||||
if (ret != GST_FLOW_OK) {
|
||||
dlbuf->srcresult = ret;
|
||||
goto out_flushing;
|
||||
}
|
||||
|
||||
if (dlbuf->stream_start_event != NULL) {
|
||||
gst_pad_push_event (dlbuf->srcpad, dlbuf->stream_start_event);
|
||||
|
|
Loading…
Reference in a new issue