From: Olivier CrĂȘte Date: Fri, 6 May 2022 22:21:00 +0000 (-0400) Subject: pcapparse: Set timestamp in DTS, not PTS X-Git-Tag: 1.22.0~1659 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86105a47742083e0078cc22cbcd660db4b757a11;p=platform%2Fupstream%2Fgstreamer.git pcapparse: Set timestamp in DTS, not PTS This matches the behaviour of basesrc, in particular, it matches the behaviour of udpsrc, so it's easier to use to as a replacement to test rtpjitterbuffer and other similar elements. Part-of: --- diff --git a/subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c b/subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c index 967e4ca..a492205 100644 --- a/subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c +++ b/subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c @@ -559,7 +559,7 @@ gst_pcap_parse_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer) self->cur_ts += self->offset; } } - GST_BUFFER_TIMESTAMP (out_buf) = self->cur_ts; + GST_BUFFER_DTS (out_buf) = self->cur_ts; if (list == NULL)