mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
gstpipewiresrc: clear timestamps when processing a buffer
This is necessary for 'do-timestamp' to work if the source provides no timestamps. Without this, the timestamp from the first use will remain, because the basesrc only overwrites timestamps that are GST_CLOCK_TIME_NONE.
This commit is contained in:
parent
10ec285911
commit
c79a30bd8a
1 changed files with 3 additions and 0 deletions
|
|
@ -411,6 +411,9 @@ on_process (void *_data)
|
||||||
|
|
||||||
GST_LOG_OBJECT (pwsrc, "got new buffer %p", buf);
|
GST_LOG_OBJECT (pwsrc, "got new buffer %p", buf);
|
||||||
|
|
||||||
|
GST_BUFFER_PTS (buf) = GST_CLOCK_TIME_NONE;
|
||||||
|
GST_BUFFER_DTS (buf) = GST_CLOCK_TIME_NONE;
|
||||||
|
|
||||||
h = data->header;
|
h = data->header;
|
||||||
if (h) {
|
if (h) {
|
||||||
GST_INFO ("pts %" G_GUINT64_FORMAT ", dts_offset %"G_GUINT64_FORMAT, h->pts, h->dts_offset);
|
GST_INFO ("pts %" G_GUINT64_FORMAT ", dts_offset %"G_GUINT64_FORMAT, h->pts, h->dts_offset);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue