GNOME Bugzilla – Bug 767791
tagdemux: preserve duration when skipping a tag at the beginning of a buffer
Last modified: 2016-06-21 07:45:00 UTC
Created attachment 329954 [details] [review] patch gst_buffer_copy_region() does not copy the duration if it doesn't start with the first byte. We just skip the tag here, so the duration is still valid. This is like #767173, just for the duration instead of the timestamp.
Review of attachment 329954 [details] [review]: ::: gst-libs/gst/tag/gsttagdemux.c @@ +470,3 @@ GST_BUFFER_TIMESTAMP (sub) = GST_BUFFER_TIMESTAMP (buf); + if (GST_BUFFER_DURATION_IS_VALID (buf)) + GST_BUFFER_DURATION (sub) += GST_BUFFER_DURATION (buf); Shouldn't this be = instead of += ?
Created attachment 329959 [details] [review] patch Yes, of course. I've updated the patch to fix this.
commit 72879c3639f608be526359727e53f0e99d095e65 Author: Michael Olbrich <m.olbrich@pengutronix.de> Date: Fri Jun 17 15:11:20 2016 +0200 tagdemux: preserve duration when skipping a tag at the beginning of a buffer gst_buffer_copy_region() does not copy the duration if it doesn't start with the first byte. We just skip the tag here, so the duration is still valid. https://bugzilla.gnome.org/show_bug.cgi?id=767791