Commit ac56c1c3 authored by Michael Olbrich's avatar Michael Olbrich Committed by Tim-Philipp Müller
Browse files

tagdemux: preserve timestamp when skipping a tag at the beginning of a buffer

gst_buffer_copy_region() does not copy the timestamp if it doesn't start
with the first byte. We just skip the tag here, so the timestamp is still
parent 1335ccd2
...@@ -466,6 +466,8 @@ gst_tag_demux_trim_buffer (GstTagDemux * tagdemux, GstBuffer ** buf_ref, ...@@ -466,6 +466,8 @@ gst_tag_demux_trim_buffer (GstTagDemux * tagdemux, GstBuffer ** buf_ref,
gst_buffer_copy_region (buf, GST_BUFFER_COPY_ALL, trim_start, gst_buffer_copy_region (buf, GST_BUFFER_COPY_ALL, trim_start,
out_size); out_size);
g_return_val_if_fail (sub != NULL, FALSE); g_return_val_if_fail (sub != NULL, FALSE);
gst_buffer_unref (buf); gst_buffer_unref (buf);
*buf_ref = buf = sub; *buf_ref = buf = sub;
*buf_size = out_size; *buf_size = out_size;
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