From a595df5daa76910356ea65397e0f0bb7bc2c4e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 6 Oct 2011 08:33:19 +0100 Subject: [PATCH] splitfilesrc: set offsets on buffers Looks like some parsers (in some versions at least) expect the offsets to be set, and behave weird if that's not the case (e.g. off-by-one in h264parse). --- gst/multifile/gstsplitfilesrc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/multifile/gstsplitfilesrc.c b/gst/multifile/gstsplitfilesrc.c index ce856f5b7d..35559fab30 100644 --- a/gst/multifile/gstsplitfilesrc.c +++ b/gst/multifile/gstsplitfilesrc.c @@ -497,6 +497,10 @@ gst_split_file_src_create (GstBaseSrc * basesrc, guint64 offset, guint size, cur_part.stop, cur_part.path); buf = gst_buffer_new_and_alloc (size); + + GST_BUFFER_OFFSET (buf) = offset; + GST_BUFFER_OFFSET_END (buf) = offset + size; + data = GST_BUFFER_DATA (buf); cancel = src->cancellable;