diff options
author | Tim-Philipp Müller <tim@centricular.net> | 2006-06-19 14:07:24 +0000 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.net> | 2006-06-19 14:07:24 +0000 |
commit | 85db24636adb6223d73395d51762e6923847883a (patch) | |
tree | 159d0b7280a3df173a7bcb59500070334eb35e6c | |
parent | 4e48509c4d2e26cf3b132edaaab59866de6fe565 (diff) | |
download | gst-plugins-bad-85db24636adb6223d73395d51762e6923847883a.tar.gz gst-plugins-bad-85db24636adb6223d73395d51762e6923847883a.tar.bz2 gst-plugins-bad-85db24636adb6223d73395d51762e6923847883a.zip |
configure.ac: Fix check so that future libneon API changes won't break the build.
Original commit message from CVS:
* configure.ac:
Fix check so that future libneon API changes won't break the build.
* ext/neon/gstneonhttpsrc.c:
Fix build with libneon-0.26.x (#345182).
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | ext/neon/gstneonhttpsrc.c | 13 |
3 files changed, 19 insertions, 4 deletions
@@ -1,3 +1,11 @@ +2006-06-19 Tim-Philipp Müller <tim at centricular dot net> + + * configure.ac: + Fix check so that future libneon API changes won't break the build. + + * ext/neon/gstneonhttpsrc.c: + Fix build with libneon-0.26.x (#345182). + 2006-06-17 Tim-Philipp Müller <tim at centricular dot net> * configure.ac: diff --git a/configure.ac b/configure.ac index 8d267d23..7e731092 100644 --- a/configure.ac +++ b/configure.ac @@ -564,7 +564,7 @@ GST_CHECK_FEATURE(MUSICBRAINZ, [musicbrainz tag generation], musicbrainz, [ dnl *** neon *** translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true) GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [ - PKG_CHECK_MODULES(NEON, neon >= 0.25.5, HAVE_NEON="yes", [ + PKG_CHECK_MODULES(NEON, neon >= 0.25.5 neon <= 0.26.99, HAVE_NEON="yes", [ HAVE_NEON="no" AC_MSG_RESULT(no) ]) diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c index 356da9a0..98da8234 100644 --- a/ext/neon/gstneonhttpsrc.c +++ b/ext/neon/gstneonhttpsrc.c @@ -20,6 +20,10 @@ #include <string.h> #include <unistd.h> +#ifndef NE_FREE +#define NEON_026_OR_LATER 1 +#endif + #define HTTP_DEFAULT_HOST "localhost" #define HTTP_DEFAULT_PORT 80 #define HTTPS_DEFAULT_PORT 443 @@ -626,10 +630,13 @@ set_proxy (const char *uri, ne_uri * parsed, gboolean set_default) if (parsed->host && !parsed->port) { goto clear; } - - if (!parsed->path || parsed->authinfo) { +#ifdef NEON_026_OR_LATER + if (!parsed->path || parsed->userinfo) goto clear; - } +#else + if (!parsed->path || parsed->authinfo) + goto clear; +#endif return TRUE; |