diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-09-28 11:07:34 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-09-28 11:07:34 +0000 |
commit | 3864c6112af0846a1e34d6897419dccb63e07fbd (patch) | |
tree | 8c2f78e27c629f3c68eb28f4eda27519846882d2 /ext/neon | |
parent | e9bedf4926c9d8f2e7427486947d533542959269 (diff) | |
download | gst-plugins-bad-3864c6112af0846a1e34d6897419dccb63e07fbd.tar.gz gst-plugins-bad-3864c6112af0846a1e34d6897419dccb63e07fbd.tar.bz2 gst-plugins-bad-3864c6112af0846a1e34d6897419dccb63e07fbd.zip |
ext/neon/gstneonhttpsrc.c: Now that we require libneon >= 0.26 remove the neon 0.25 backward compatibility stuff. Als...
Original commit message from CVS:
* 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.
Diffstat (limited to 'ext/neon')
-rw-r--r-- | ext/neon/gstneonhttpsrc.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index 683b5ac0..0172a4a9 100644 --- a/ext/neon/gstneonhttpsrc.c +++ b/ext/neon/gstneonhttpsrc.c @@ -25,10 +25,6 @@ #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 @@ -57,7 +53,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src", #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 @@ -773,13 +769,8 @@ gst_neonhttp_src_set_proxy (GstNeonhttpSrc * src, const char *uri) 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 */ @@ -816,9 +807,7 @@ 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->query_string); |