mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
[MOVED FROM GST-P-FARSIGHT] Explicit the discont flag mangling
20080428183409-3e2dc-4db2505eeca033a634253b6c2d2f4f1398e9fcca.gz
This commit is contained in:
parent
e7413eb0cb
commit
1dc81fa5e3
1 changed files with 5 additions and 0 deletions
|
@ -1075,6 +1075,11 @@ gst_live_adder_loop (gpointer data)
|
||||||
if (!buffer)
|
if (!buffer)
|
||||||
goto again;
|
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) &&
|
if (GST_CLOCK_TIME_IS_VALID (adder->next_timestamp) &&
|
||||||
GST_BUFFER_TIMESTAMP (buffer) != adder->next_timestamp) {
|
GST_BUFFER_TIMESTAMP (buffer) != adder->next_timestamp) {
|
||||||
if (llabs (GST_BUFFER_TIMESTAMP (buffer) - adder->next_timestamp) <
|
if (llabs (GST_BUFFER_TIMESTAMP (buffer) - adder->next_timestamp) <
|
||||||
|
|
Loading…
Reference in a new issue