summaryrefslogtreecommitdiffstats
path: root/gst/liveadder/liveadder.c
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.co.uk>2008-04-28 18:34:09 +0000
committerEdward Hervey <bilboed@bilboed.com>2009-02-17 19:29:04 +0100
commit1dc81fa5e3418df92aa58bb1645d09ab944b40dc (patch)
treee5172c5ae9703a80d0d3a83d20d2e59942ce0422 /gst/liveadder/liveadder.c
parente7413eb0cb041ae3abc377ef3a1b9df23c9c2ced (diff)
downloadgst-plugins-bad-1dc81fa5e3418df92aa58bb1645d09ab944b40dc.tar.gz
gst-plugins-bad-1dc81fa5e3418df92aa58bb1645d09ab944b40dc.tar.bz2
gst-plugins-bad-1dc81fa5e3418df92aa58bb1645d09ab944b40dc.zip
[MOVED FROM GST-P-FARSIGHT] Explicit the discont flag mangling
20080428183409-3e2dc-4db2505eeca033a634253b6c2d2f4f1398e9fcca.gz
Diffstat (limited to 'gst/liveadder/liveadder.c')
-rw-r--r--gst/liveadder/liveadder.c5
1 files changed, 5 insertions, 0 deletions
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) <