From 86105a47742083e0078cc22cbcd660db4b757a11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Fri, 6 May 2022 18:21:00 -0400 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.7.4