splitmux: Avoid negative DTS
authorJan Schmidt <jan@centricular.com>
Thu, 20 Feb 2020 15:14:11 +0000 (02:14 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 4 Mar 2020 05:42:21 +0000 (05:42 +0000)
commitf490c3841698fff671a62aef7ac77b9b055e6008
treebf37016754951a62615c8983a0ea2750a8071d01
parent54f68ff36be40033eccb0407e8e24d3cb4ca3b91
splitmux: Avoid negative DTS

In order to concatenate fragments, splitmuxsrc offsets
the start of each fragment PTS to 0 to align it with the
previous file. This means that DTS can go negative for
the first fragment, with really bad results.

Add a fixed offset to outgoing timestamp ranges to
avoid that.
gst/multifile/gstsplitmuxpartreader.c
gst/multifile/gstsplitmuxpartreader.h
gst/multifile/gstsplitmuxsrc.c
tests/check/elements/splitmux.c