From ee01676c0d23b8ab0426a14306a1f0d1cefdc750 Mon Sep 17 00:00:00 2001 From: Thomas Green Date: Sun, 9 Sep 2007 19:05:19 +0000 Subject: 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 * 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. --- ext/neon/gstneonhttpsrc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') 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) { -- cgit v1.2.1