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/7140>
This commit is contained in:
Guillaume Desmottes 2024-07-03 09:16:47 +02:00 committed by GStreamer Marge Bot
parent a0ce51c2ba
commit 8d99e858ff

View file

@ -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);