+2007-09-28 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_set_proxy),
+ (gst_neonhttp_src_send_request_and_redirect):
+ Now that we require libneon >= 0.26 remove the neon 0.25 backward
+ compatibility stuff. Also fix the default location.
+
2007-09-28 Wim Taymans <wim.taymans@gmail.com>
* configure.ac:
#include <ne_redirect.h>
-#ifndef NE_FREE
-#define NEON_026_OR_LATER 1
-#endif
-
GST_DEBUG_CATEGORY_STATIC (neonhttpsrc_debug);
#define GST_CAT_DEFAULT neonhttpsrc_debug
#define HTTP_DEFAULT_HOST "localhost"
/* default properties */
-#define DEFAULT_LOCATION "http://"HTTP_DEFAULT_HOST"/"G_STRINGIFY(HTTP_DEFAULT_PORT)
+#define DEFAULT_LOCATION "http://"HTTP_DEFAULT_HOST":"G_STRINGIFY(HTTP_DEFAULT_PORT)
#define DEFAULT_PROXY ""
#define DEFAULT_USER_AGENT "GStreamer neonhttpsrc"
#define DEFAULT_IRADIO_MODE FALSE
if (src->proxy.host && !src->proxy.port)
goto error;
-#ifdef NEON_026_OR_LATER
if (!src->proxy.path || src->proxy.userinfo)
goto error;
-#else
- if (!src->proxy.path || src->proxy.authinfo)
- goto error;
-#endif
return TRUE;
/* ERRORS */
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->query_string);