From 0c24e923081ce198f5de5767cd0e5808096c7e6e Mon Sep 17 00:00:00 2001 From: Alban Browaeys Date: Wed, 18 Jul 2012 22:47:22 +0200 Subject: [PATCH] soup: deprecated soup_message_headers _get -> _get_one https://bugzilla.gnome.org/show_bug.cgi?id=680206 --- configure.ac | 2 +- ext/soup/gstsouphttpsrc.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 11612c6d12..be132e994d 100644 --- a/configure.ac +++ b/configure.ac @@ -830,7 +830,7 @@ AG_GST_CHECK_FEATURE(SOUP, [soup http client plugin (2.4)], souphttpsrc, [ HAVE_SOUP="yes" AC_DEFINE(HAVE_LIBSOUP_GNOME, 1, [soup gnome integration]) ],[ - PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.26, HAVE_SOUP="yes", [ + PKG_CHECK_MODULES(SOUP, libsoup-2.4 >= 2.26.1, HAVE_SOUP="yes", [ HAVE_SOUP="no" ]) ]) diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 40ff92fe91..48a4bdadda 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -669,7 +669,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) if (src->automatic_redirect && SOUP_STATUS_IS_REDIRECTION (msg->status_code)) { GST_DEBUG_OBJECT (src, "%u redirect to \"%s\"", msg->status_code, - soup_message_headers_get (msg->response_headers, "Location")); + soup_message_headers_get_one (msg->response_headers, "Location")); return; } @@ -701,7 +701,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) tag_list = gst_tag_list_new_empty (); if ((value = - soup_message_headers_get (msg->response_headers, + soup_message_headers_get_one (msg->response_headers, "icy-metaint")) != NULL) { gint icy_metaint = atoi (value); @@ -757,7 +757,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) g_hash_table_destroy (params); if ((value = - soup_message_headers_get (msg->response_headers, + soup_message_headers_get_one (msg->response_headers, "icy-name")) != NULL) { g_free (src->iradio_name); src->iradio_name = gst_soup_http_src_unicodify (value); @@ -767,7 +767,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) } } if ((value = - soup_message_headers_get (msg->response_headers, + soup_message_headers_get_one (msg->response_headers, "icy-genre")) != NULL) { g_free (src->iradio_genre); src->iradio_genre = gst_soup_http_src_unicodify (value); @@ -776,7 +776,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) src->iradio_genre, NULL); } } - if ((value = soup_message_headers_get (msg->response_headers, "icy-url")) + if ((value = soup_message_headers_get_one (msg->response_headers, "icy-url")) != NULL) { g_free (src->iradio_url); src->iradio_url = gst_soup_http_src_unicodify (value);