From 8d99e858ff3934bda47d87cb6802eb7f3c7fe7b6 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 3 Jul 2024 09:16:47 +0200 Subject: [PATCH] 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: --- subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c b/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c index d51aeebe61..35e7f3ebbf 100644 --- a/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c +++ b/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c @@ -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);