From 1dc81fa5e3418df92aa58bb1645d09ab944b40dc Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Mon, 28 Apr 2008 18:34:09 +0000 Subject: [MOVED FROM GST-P-FARSIGHT] Explicit the discont flag mangling 20080428183409-3e2dc-4db2505eeca033a634253b6c2d2f4f1398e9fcca.gz --- gst/liveadder/liveadder.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gst/liveadder/liveadder.c') diff --git a/gst/liveadder/liveadder.c b/gst/liveadder/liveadder.c index 645967d2..eaf396d6 100644 --- a/gst/liveadder/liveadder.c +++ b/gst/liveadder/liveadder.c @@ -1075,6 +1075,11 @@ gst_live_adder_loop (gpointer data) if (!buffer) goto again; + /* + * We make sure the timestamps are exactly contiguous + * If its only small skew (due to rounding errors), we correct it + * silently. Otherwise we put the discont flag + */ if (GST_CLOCK_TIME_IS_VALID (adder->next_timestamp) && GST_BUFFER_TIMESTAMP (buffer) != adder->next_timestamp) { if (llabs (GST_BUFFER_TIMESTAMP (buffer) - adder->next_timestamp) < -- cgit v1.2.1