From b14a3ad4efa3c3286df60844037267bfbb83acb1 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Wed, 26 Sep 2012 10:54:06 +0200 Subject: [PATCH] identity: retimestamp both pts and dts when doing so --- plugins/elements/gstidentity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/elements/gstidentity.c b/plugins/elements/gstidentity.c index 004a93b640..2475cc8058 100644 --- a/plugins/elements/gstidentity.c +++ b/plugins/elements/gstidentity.c @@ -554,7 +554,7 @@ gst_identity_transform_ip (GstBaseTransform * trans, GstBuffer * buf) GstClockTime time = gst_util_uint64_scale_int (identity->offset, GST_SECOND, identity->datarate); - GST_BUFFER_TIMESTAMP (buf) = time; + GST_BUFFER_PTS (buf) = GST_BUFFER_DTS (buf) = time; GST_BUFFER_DURATION (buf) = size * GST_SECOND / identity->datarate; } @@ -599,7 +599,7 @@ gst_identity_transform_ip (GstBaseTransform * trans, GstBuffer * buf) if (identity->single_segment && (trans->segment.format == GST_FORMAT_TIME) && (ret == GST_FLOW_OK)) { - GST_BUFFER_TIMESTAMP (buf) = runtimestamp; + GST_BUFFER_PTS (buf) = GST_BUFFER_DTS (buf) = runtimestamp; GST_BUFFER_OFFSET (buf) = GST_CLOCK_TIME_NONE; GST_BUFFER_OFFSET_END (buf) = GST_CLOCK_TIME_NONE; }