mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
ximagesrc: clear dts on buffer acquired from pool
When setting timestamps on outgoing buffers, clear the dts explicitly, otherwise it may end up being set to a bogus value from last time it was used. Avoids every second or so buffer's dts being set to 0. Not that it should matter for raw video.
This commit is contained in:
parent
821d99a503
commit
c03efd3894
1 changed files with 2 additions and 1 deletions
|
@ -862,7 +862,8 @@ gst_ximage_src_create (GstPushSrc * bs, GstBuffer ** buf)
|
|||
return GST_FLOW_ERROR;
|
||||
|
||||
*buf = image;
|
||||
GST_BUFFER_TIMESTAMP (*buf) = next_capture_ts;
|
||||
GST_BUFFER_DTS (*buf) = GST_CLOCK_TIME_NONE;
|
||||
GST_BUFFER_PTS (*buf) = next_capture_ts;
|
||||
GST_BUFFER_DURATION (*buf) = dur;
|
||||
|
||||
return GST_FLOW_OK;
|
||||
|
|
Loading…
Reference in a new issue