mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7128>
This commit is contained in:
parent
523adcfb1d
commit
560d9b5b91
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue