summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2006-12-12 12:46:23 +0000
committerTim-Philipp Müller <tim@centricular.net>2006-12-12 12:46:23 +0000
commit9e71250a69ece783fddcc98d0a324b02d4c4e0ac (patch)
tree2fa4a1bf4b262aba9beb76546a416c0e23fa7e57 /ext
parent9a2781a64fe7194b532be6198af00829c18e3c87 (diff)
downloadgst-plugins-bad-9e71250a69ece783fddcc98d0a324b02d4c4e0ac.tar.gz
gst-plugins-bad-9e71250a69ece783fddcc98d0a324b02d4c4e0ac.tar.bz2
gst-plugins-bad-9e71250a69ece783fddcc98d0a324b02d4c4e0ac.zip
ext/neon/gstneonhttpsrc.c: Set offset on buffers pushed out (id3demux gets confused if the first buffer does not have...
Original commit message from CVS: * ext/neon/gstneonhttpsrc.c: (gst_neonhttp_src_create), (send_request_and_redirect): Set offset on buffers pushed out (id3demux gets confused if the first buffer does not have an offset of 0). Fixes #384140.
Diffstat (limited to 'ext')
-rw-r--r--ext/neon/gstneonhttpsrc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/neon/gstneonhttpsrc.c b/ext/neon/gstneonhttpsrc.c
index 90f8fa13..5c747139 100644
--- a/ext/neon/gstneonhttpsrc.c
+++ b/ext/neon/gstneonhttpsrc.c
@@ -333,7 +333,7 @@ gst_neonhttp_src_create (GstPushSrc * psrc, GstBuffer ** outbuf)
/* Create the buffer. */
ret = gst_pad_alloc_buffer (GST_BASE_SRC_PAD (basesrc),
- GST_BUFFER_OFFSET_NONE, basesrc->blocksize,
+ basesrc->segment.last_stop, basesrc->blocksize,
src->icy_caps ? src->icy_caps :
GST_PAD_CAPS (GST_BASE_SRC_PAD (basesrc)), outbuf);
@@ -478,6 +478,8 @@ send_request_and_redirect (GstNeonhttpSrc * src, gboolean do_redir)
&& do_redir ? "Redirecting to" :
"WILL NOT redirect, try it again with a different URI; an alternative is",
src->uri.host);
+ /* FIXME: when not redirecting automatically, shouldn't we post a
+ * redirect element message on the bus? */
}
#ifndef GST_DISABLE_GST_DEBUG
if (src->neon_http_msgs_dbg)