summaryrefslogtreecommitdiffstats
path: root/ext
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
commit98b7a0c36df81253c4cb6857bd4c23e4c9d2cb72 (patch)
tree8ff4fcc25e286195432038d6c70e9eaceeaf2e78 /ext
parente4a6b35a28be9001c102a4d9a268c9c07d0880bf (diff)
downloadgst-plugins-bad-98b7a0c36df81253c4cb6857bd4c23e4c9d2cb72.tar.gz
gst-plugins-bad-98b7a0c36df81253c4cb6857bd4c23e4c9d2cb72.tar.bz2
gst-plugins-bad-98b7a0c36df81253c4cb6857bd4c23e4c9d2cb72.zip
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')
-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,