[MOVED FROM GST-P-FARSIGHT] Explicit the discont flag mangling

20080428183409-3e2dc-4db2505eeca033a634253b6c2d2f4f1398e9fcca.gz
This commit is contained in:
Olivier Crete 2008-04-28 18:34:09 +00:00 committed by Edward Hervey
parent e7413eb0cb
commit 1dc81fa5e3

View file

@ -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) <