summaryrefslogtreecommitdiffstats
path: root/ext/neon
diff options
context:
space:
mode:
authorThomas Green <tom78999@gmail.com>2007-09-09 19:05:19 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-09-09 19:05:19 +0000
commitee01676c0d23b8ab0426a14306a1f0d1cefdc750 (patch)
tree51b9b1ddf7129bd0a5734f32aee3870e0f794cd9 /ext/neon
parent30e7dc80a2f6cbc5aab609b97a4dcac286df5595 (diff)
downloadgst-plugins-bad-ee01676c0d23b8ab0426a14306a1f0d1cefdc750.tar.gz
gst-plugins-bad-ee01676c0d23b8ab0426a14306a1f0d1cefdc750.tar.bz2
gst-plugins-bad-ee01676c0d23b8ab0426a14306a1f0d1cefdc750.zip
ext/neon/gstneonhttpsrc.c: With libneon 2.6, we need to set the NE_SESSFLAG_ICYPROTO flag if we want ICY streams to b...
Original commit message from CVS: Patch by: Thomas Green <tom78999 gmail com> * ext/neon/gstneonhttpsrc.c: With libneon 2.6, we need to set the NE_SESSFLAG_ICYPROTO flag if we want ICY streams to be handled too, otherwise libneon will error out with a 'can't parse reponse' error. Fixes #474696. * tests/check/elements/neonhttpsrc.c: Unit test for the above by Yours Truly.
Diffstat (limited to 'ext/neon')
-rw-r--r--ext/neon/gstneonhttpsrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c
index c29cd1c2..2c1c6c3a 100644
--- a/ext/neon/gstneonhttpsrc.c
+++ b/ext/neon/gstneonhttpsrc.c
@@ -800,6 +800,10 @@ gst_neonhttp_src_send_request_and_redirect (GstNeonhttpSrc * src,
ne_session_create (src->uri.scheme, src->uri.host, src->uri.port);
}
+#ifdef NEON_026_OR_LATER
+ ne_set_session_flag (session, NE_SESSFLAG_ICYPROTO, 1);
+#endif
+
request = ne_request_create (session, "GET", src->uri.path);
if (src->user_agent) {