Commit a595df5d authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

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).
parent 2dd67036
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment