summaryrefslogtreecommitdiffstats
path: root/ext/soup
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd@luon.net>2008-04-06 09:01:42 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-04-06 09:01:42 +0000
commitb19e963ba02f8ab3c862048e2f8c4b64ac6bcec4 (patch)
tree98c45028c1caf432965312b233832dd7f074cdc4 /ext/soup
parenta91d574de1f42d8d9ed3ba59c0236b08da9688d9 (diff)
ext/soup/gstsouphttpsrc.c: Only ignore actual redirects not all responses when in state
Original commit message from CVS: 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.
Diffstat (limited to 'ext/soup')
-rw-r--r--ext/soup/gstsouphttpsrc.c5
1 files changed, 3 insertions, 2 deletions
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,