soup: deprecated soup_message_headers _get -> _get_one
authorAlban Browaeys <prahal@yahoo.com>
Wed, 18 Jul 2012 20:47:22 +0000 (22:47 +0200)
committerTim-Philipp Müller <tim@centricular.net>
Wed, 18 Jul 2012 21:48:08 +0000 (22:48 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=680206

configure.ac
ext/soup/gstsouphttpsrc.c

index 11612c6..be132e9 100644 (file)
@@ -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"
     ])
   ])
index 40ff92f..48a4bda 100644 (file)
@@ -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);