mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-20 00:31:13 +00:00
pcapparse: properly apply ts offset
This commit is contained in:
parent
671a9faad6
commit
592d7cbc15
1 changed files with 4 additions and 2 deletions
|
@ -481,8 +481,10 @@ gst_pcap_parse_chain (GstPad * pad, GstBuffer * buffer)
|
|||
if (GST_CLOCK_TIME_IS_VALID (self->cur_ts)) {
|
||||
if (!GST_CLOCK_TIME_IS_VALID (self->base_ts))
|
||||
self->base_ts = self->cur_ts;
|
||||
if (self->offset >= 0)
|
||||
self->cur_ts -= self->base_ts + self->offset;
|
||||
if (self->offset >= 0) {
|
||||
self->cur_ts -= self->base_ts;
|
||||
self->cur_ts += self->offset;
|
||||
}
|
||||
}
|
||||
|
||||
memcpy (GST_BUFFER_DATA (out_buf), payload_data, payload_size);
|
||||
|
|
Loading…
Reference in a new issue