mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 13:11:06 +00:00
souphttpsrc: silence some maybe-uninitialized warnings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7875>
This commit is contained in:
parent
d98c83b297
commit
3743f69c85
1 changed files with 8 additions and 7 deletions
|
@ -1949,15 +1949,16 @@ gst_soup_http_src_do_request (GstSoupHTTPSrc * src, const gchar * method)
|
||||||
|
|
||||||
GST_LOG_OBJECT (src, "Running request for method: %s", method);
|
GST_LOG_OBJECT (src, "Running request for method: %s", method);
|
||||||
|
|
||||||
if (src->msg)
|
if (src->msg) {
|
||||||
request_headers = _soup_message_get_request_headers (src->msg);
|
request_headers = _soup_message_get_request_headers (src->msg);
|
||||||
|
|
||||||
/* Update the position if we are retrying */
|
/* Update the position if we are retrying */
|
||||||
if (src->msg && src->request_position > 0) {
|
if (src->request_position > 0) {
|
||||||
gst_soup_http_src_add_range_header (src, src->request_position,
|
gst_soup_http_src_add_range_header (src, src->request_position,
|
||||||
src->stop_position);
|
src->stop_position);
|
||||||
} else if (src->msg && src->request_position == 0)
|
} else if (src->request_position == 0)
|
||||||
_soup_message_headers_remove (request_headers, "Range");
|
_soup_message_headers_remove (request_headers, "Range");
|
||||||
|
}
|
||||||
|
|
||||||
/* add_range_header() has the side effect of setting read_position to
|
/* add_range_header() has the side effect of setting read_position to
|
||||||
* the requested position. This *needs* to be set regardless of having
|
* the requested position. This *needs* to be set regardless of having
|
||||||
|
|
Loading…
Reference in a new issue