From 560d9b5b91085b2a93a38c8fe52f762c628dcd44 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 3 Jul 2024 09:13:27 +0200 Subject: [PATCH] downloadbuffer: init upstream_size to -1 Code in check_upstream_size() is checking for -1 to check if upstream_size has been set or not. Part-of: --- subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c b/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c index e91648b108..d51aeebe61 100644 --- a/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c +++ b/subprojects/gstreamer/plugins/elements/gstdownloadbuffer.c @@ -1769,7 +1769,7 @@ gst_download_buffer_src_activate_pull (GstPad * pad, GstObject * parent, dlbuf->srcresult = GST_FLOW_OK; dlbuf->sinkresult = GST_FLOW_OK; dlbuf->unexpected = FALSE; - dlbuf->upstream_size = 0; + dlbuf->upstream_size = -1; GST_DOWNLOAD_BUFFER_MUTEX_UNLOCK (dlbuf); } else { GST_DOWNLOAD_BUFFER_MUTEX_LOCK (dlbuf);