From 3743f69c85695148075e1c8f0a292817e33bf043 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 13 Nov 2024 16:56:57 +1100 Subject: [PATCH] souphttpsrc: silence some maybe-uninitialized warnings Part-of: --- .../gst-plugins-good/ext/soup/gstsouphttpsrc.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/subprojects/gst-plugins-good/ext/soup/gstsouphttpsrc.c b/subprojects/gst-plugins-good/ext/soup/gstsouphttpsrc.c index ebb2e8ef8b..f84a7f40ae 100644 --- a/subprojects/gst-plugins-good/ext/soup/gstsouphttpsrc.c +++ b/subprojects/gst-plugins-good/ext/soup/gstsouphttpsrc.c @@ -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); - if (src->msg) + if (src->msg) { request_headers = _soup_message_get_request_headers (src->msg); - /* Update the position if we are retrying */ - if (src->msg && src->request_position > 0) { - gst_soup_http_src_add_range_header (src, src->request_position, - src->stop_position); - } else if (src->msg && src->request_position == 0) - _soup_message_headers_remove (request_headers, "Range"); + /* Update the position if we are retrying */ + if (src->request_position > 0) { + gst_soup_http_src_add_range_header (src, src->request_position, + src->stop_position); + } else if (src->request_position == 0) + _soup_message_headers_remove (request_headers, "Range"); + } /* add_range_header() has the side effect of setting read_position to * the requested position. This *needs* to be set regardless of having