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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2388>
This commit is contained in:
Olivier Crête 2022-05-06 18:21:00 -04:00 committed by GStreamer Marge Bot
parent 66f017f8ea
commit 86105a4774

View 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)