pcapparse: Set timestamp in DTS, not PTS
authorOlivier CrĂȘte <olivier.crete@ocrete.ca>
Fri, 6 May 2022 22:21:00 +0000 (18:21 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 7 May 2022 07:32:41 +0000 (07:32 +0000)
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2388>

subprojects/gst-plugins-bad/gst/pcapparse/gstpcapparse.c

index 967e4ca..a492205 100644 (file)
@@ -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)