From a174ff25bc683e112be440be39059f34d844a750 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 5 Aug 2013 16:14:22 +0200 Subject: [PATCH] adder: set DTS and PTS, sync on DTS --- gst/adder/gstadder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/adder/gstadder.c b/gst/adder/gstadder.c index 78f7c82a09..39f934d17e 100644 --- a/gst/adder/gstadder.c +++ b/gst/adder/gstadder.c @@ -1489,12 +1489,12 @@ gst_adder_collected (GstCollectPads * pads, gpointer user_data) /* set timestamps on the output buffer */ if (adder->segment.rate > 0.0) { - GST_BUFFER_TIMESTAMP (outbuf) = adder->segment.position; + GST_BUFFER_PTS (outbuf) = GST_BUFFER_DTS (outbuf) = adder->segment.position; GST_BUFFER_OFFSET (outbuf) = adder->offset; GST_BUFFER_OFFSET_END (outbuf) = next_offset; GST_BUFFER_DURATION (outbuf) = next_timestamp - adder->segment.position; } else { - GST_BUFFER_TIMESTAMP (outbuf) = next_timestamp; + GST_BUFFER_DTS (outbuf) = GST_BUFFER_PTS (outbuf) = next_timestamp; GST_BUFFER_OFFSET (outbuf) = next_offset; GST_BUFFER_OFFSET_END (outbuf) = adder->offset; GST_BUFFER_DURATION (outbuf) = adder->segment.position - next_timestamp;