mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-29 18:48:44 +00:00
Now it uses libneon 0.25.5 that supports shoutcast.
Original commit message from CVS: Now it uses libneon 0.25.5 that supports shoutcast.
This commit is contained in:
parent
2150a63446
commit
14a0f2771e
3 changed files with 16 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2006-02-06 Edgard Lima <edgard.lima@indt.org.br>
|
||||||
|
|
||||||
|
* configure.ac:
|
||||||
|
* ext/neon/gstneonhttpsrc.c:
|
||||||
|
Now it uses libneon 0.25.5 that supports shoutcast.
|
||||||
|
|
||||||
2006-02-06 Lutz Mueller <lutz@topfrose.de>
|
2006-02-06 Lutz Mueller <lutz@topfrose.de>
|
||||||
|
|
||||||
Reviewed by: Edward Hervey <edward@fluendo.com>
|
Reviewed by: Edward Hervey <edward@fluendo.com>
|
||||||
|
|
|
@ -487,7 +487,7 @@ GST_CHECK_FEATURE(MUSEPACK, [musepackdec], musepack, [
|
||||||
dnl *** neon ***
|
dnl *** neon ***
|
||||||
translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
|
translit(dnm, m, l) AM_CONDITIONAL(USE_NEON, true)
|
||||||
GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
|
GST_CHECK_FEATURE(NEON, [neon http client plugins], neonhttpsrc, [
|
||||||
PKG_CHECK_MODULES(NEON, neon = 0.24.7, HAVE_NEON="yes", HAVE_NEON="no")
|
PKG_CHECK_MODULES(NEON, neon = 0.25.5, HAVE_NEON="yes", HAVE_NEON="no")
|
||||||
AC_SUBST(NEON_CFLAGS)
|
AC_SUBST(NEON_CFLAGS)
|
||||||
AC_SUBST(NEON_LIBS)
|
AC_SUBST(NEON_LIBS)
|
||||||
])
|
])
|
||||||
|
|
|
@ -51,8 +51,6 @@ enum
|
||||||
|
|
||||||
static void oom_callback ();
|
static void oom_callback ();
|
||||||
|
|
||||||
static void size_header_handler (void *userdata, const char *value);
|
|
||||||
|
|
||||||
static gboolean set_proxy (const char *uri, ne_uri * parsed,
|
static gboolean set_proxy (const char *uri, ne_uri * parsed,
|
||||||
gboolean set_default);
|
gboolean set_default);
|
||||||
static gboolean set_uri (const char *uri, ne_uri * parsed, gboolean * ishttps,
|
static gboolean set_uri (const char *uri, ne_uri * parsed, gboolean * ishttps,
|
||||||
|
@ -318,6 +316,7 @@ gst_neonhttp_src_start (GstBaseSrc * bsrc)
|
||||||
{
|
{
|
||||||
gboolean ret = TRUE;
|
gboolean ret = TRUE;
|
||||||
GstNeonhttpSrc *src = GST_NEONHTTP_SRC (bsrc);
|
GstNeonhttpSrc *src = GST_NEONHTTP_SRC (bsrc);
|
||||||
|
const char *content_length;
|
||||||
|
|
||||||
ne_oom_callback (oom_callback);
|
ne_oom_callback (oom_callback);
|
||||||
|
|
||||||
|
@ -339,14 +338,19 @@ gst_neonhttp_src_start (GstBaseSrc * bsrc)
|
||||||
|
|
||||||
src->request = ne_request_create (src->session, "GET", src->uri.path);
|
src->request = ne_request_create (src->session, "GET", src->uri.path);
|
||||||
|
|
||||||
ne_add_response_header_handler (src->request, "Content-Length",
|
|
||||||
size_header_handler, src);
|
|
||||||
|
|
||||||
if (NE_OK != ne_begin_request (src->request)) {
|
if (NE_OK != ne_begin_request (src->request)) {
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
content_length = ne_get_response_header (src->request, "Content-Length");
|
||||||
|
|
||||||
|
if (content_length) {
|
||||||
|
src->content_size = atoll (content_length);
|
||||||
|
} else {
|
||||||
|
src->content_size = -1;
|
||||||
|
}
|
||||||
|
|
||||||
GST_OBJECT_FLAG_SET (src, GST_NEONHTTP_SRC_OPEN);
|
GST_OBJECT_FLAG_SET (src, GST_NEONHTTP_SRC_OPEN);
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
Loading…
Reference in a new issue