From 0f8c38c19097580b7d8bc4261baa5ece2491a5e5 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 14 Oct 2022 06:20:06 +1100 Subject: [PATCH] adaptivedemux2/downloadhelper: Add debug output of response headers Dump the HTTP response headers at TRACE level Part-of: --- .../gst-plugins-good/ext/adaptivedemux2/downloadhelper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-good/ext/adaptivedemux2/downloadhelper.c b/subprojects/gst-plugins-good/ext/adaptivedemux2/downloadhelper.c index 67e9bc62ab..bd6aa15885 100644 --- a/subprojects/gst-plugins-good/ext/adaptivedemux2/downloadhelper.c +++ b/subprojects/gst-plugins-good/ext/adaptivedemux2/downloadhelper.c @@ -550,6 +550,10 @@ on_request_sent (GObject * source, GAsyncResult * result, gpointer user_data) request->state = DOWNLOAD_REQUEST_STATE_HEADERS_RECEIVED; request->status_code = _soup_message_get_status (msg); request->headers = handle_response_headers (transfer); + GST_TRACE ("request URI %s range %" G_GINT64_FORMAT " %" + G_GINT64_FORMAT " headers: %" GST_PTR_FORMAT, + request->uri, request->range_start, request->range_end, + request->headers); if (SOUP_STATUS_IS_SUCCESSFUL (request->status_code) || SOUP_STATUS_IS_REDIRECTION (request->status_code)) {