diff options
author | Alban Browaeys <prahal@yahoo.com> | 2012-07-18 22:47:22 +0200 |
---|---|---|
committer | Josep Torra <n770galaxy@gmail.com> | 2013-03-10 09:10:27 +0100 |
commit | ce962f5432f811ebf00732598436838454325572 (patch) | |
tree | 70c478ea95e47fe5c2b06d1446b7cb8c0c1d25f3 | |
parent | d2d3d5854082e5a3630ef041f0724029e420a223 (diff) |
soup: deprecated soup_message_headers _get -> _get_one
https://bugzilla.gnome.org/show_bug.cgi?id=680206
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | ext/soup/gstsouphttpsrc.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/configure.ac b/configure.ac index efd2c75da..e3eb71b4f 100644 --- a/configure.ac +++ b/configure.ac @@ -916,7 +916,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 b1401c520..447a3de34 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -740,7 +740,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; } @@ -773,7 +773,7 @@ gst_soup_http_src_got_headers_cb (SoupMessage * msg, GstSoupHTTPSrc * src) tag_list = gst_tag_list_new (); 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); @@ -825,7 +825,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); @@ -836,7 +836,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); @@ -846,7 +846,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); |