mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
winks: Reset DTS to GST_CLOCK_TIME_NONE
Otherwise we might get a previous DTS set from a recycled buffer that we get back from a buffer pool, which then confuses synchronization. https://bugzilla.gnome.org/show_bug.cgi?id=747722
This commit is contained in:
parent
265538ac6e
commit
91853015b7
1 changed files with 2 additions and 1 deletions
|
@ -900,7 +900,8 @@ gst_ks_video_src_timestamp_buffer (GstKsVideoSrc * self, GstBuffer * buf,
|
||||||
|
|
||||||
GST_BUFFER_OFFSET (buf) = priv->offset;
|
GST_BUFFER_OFFSET (buf) = priv->offset;
|
||||||
GST_BUFFER_OFFSET_END (buf) = GST_BUFFER_OFFSET (buf) + 1;
|
GST_BUFFER_OFFSET_END (buf) = GST_BUFFER_OFFSET (buf) + 1;
|
||||||
GST_BUFFER_TIMESTAMP (buf) = timestamp;
|
GST_BUFFER_PTS (buf) = timestamp;
|
||||||
|
GST_BUFFER_DTS (buf) = GST_CLOCK_TIME_NONE;
|
||||||
GST_BUFFER_DURATION (buf) = duration;
|
GST_BUFFER_DURATION (buf) = duration;
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue