downloadbuffer: initialize upstream_size when activated in push mode
Push mode flow relies on upstream_size but it was not initialized when activated as it is when activated in pull mode. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7128>
This commit is contained in:
parent
560d9b5b91
commit
894bef7a1d
@ -1730,6 +1730,7 @@ gst_download_buffer_src_activate_push (GstPad * pad, GstObject * parent,
|
||||
dlbuf->srcresult = GST_FLOW_OK;
|
||||
dlbuf->sinkresult = GST_FLOW_OK;
|
||||
dlbuf->unexpected = FALSE;
|
||||
dlbuf->upstream_size = -1;
|
||||
result =
|
||||
gst_pad_start_task (pad, (GstTaskFunction) gst_download_buffer_loop,
|
||||
pad, NULL);
|
||||
|
Loading…
x
Reference in New Issue
Block a user