diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | ext/soup/gstsouphttpsrc.c | 5 |
2 files changed, 11 insertions, 2 deletions
@@ -1,5 +1,13 @@ 2008-04-06 Sebastian Dröge <slomo@circular-chaos.org> + Patch by: Sjoerd Simons <sjoerd at luon dot net> + + * 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 <slomo@circular-chaos.org> + Patch by: Damien Lespiau <damien dot lespiau at gmail dot com> * configure.ac: diff --git a/ext/soup/gstsouphttpsrc.c b/ext/soup/gstsouphttpsrc.c index 883cbbc2..baf29438 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, |