From: Sjoerd Simons Date: Sun, 6 Apr 2008 09:01:42 +0000 (+0000) Subject: ext/soup/gstsouphttpsrc.c: Only ignore actual redirects not all responses when in... X-Git-Tag: 1.19.3~507^2~20329 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98b7a0c36df81253c4cb6857bd4c23e4c9d2cb72;p=platform%2Fupstream%2Fgstreamer.git ext/soup/gstsouphttpsrc.c: Only ignore actual redirects not all responses when in state Original commit message from CVS: Patch by: Sjoerd Simons * ext/soup/gstsouphttpsrc.c: (gst_soup_http_src_response_cb): Only ignore actual redirects not all responses when in state GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING. Fixes bug #526337. --- diff --git a/ChangeLog b/ChangeLog index da2a890..d45f228 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2008-04-06 Sebastian Dröge + Patch by: Sjoerd Simons + + * ext/soup/gstsouphttpsrc.c: (gst_soup_http_src_response_cb): + Only ignore actual redirects not all responses when in state + GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING. Fixes bug #526337. + +2008-04-06 Sebastian Dröge + Patch by: Damien Lespiau * configure.ac: diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 883cbbc..baf2943 100644 --- a/ext/soup/gstsouphttpsrc.c +++ b/ext/soup/gstsouphttpsrc.c @@ -802,8 +802,9 @@ gst_soup_http_src_response_cb (SoupSession * session, SoupMessage * msg, return; } if (G_UNLIKELY (src->session_io_status != - GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING)) { - /* Probably a redirect. */ + GST_SOUP_HTTP_SRC_SESSION_IO_STATUS_RUNNING) + && SOUP_STATUS_IS_REDIRECTION (msg->status_code)) { + /* Ignore redirections. */ return; } GST_DEBUG_OBJECT (src, "got response %d: %s", msg->status_code,