CollectPads.clipRunningTime

gst.types.FlowReturn clipRunningTime(gstbase.collect_data.CollectData cdata, gst.buffer.Buffer buf, out gst.buffer.Buffer outbuf, void * userData = null)

Convenience clipping function that converts incoming buffer's timestamp to running time, or clips the buffer if outside configured segment.

Since 1.6, this clipping function also sets the DTS parameter of the GstCollectData structure. This version of the running time DTS can be negative. G_MININT64 is used to indicate invalid value.

Parameters

cdatacollect data of corresponding pad
bufbuffer being clipped
outbufoutput buffer with running time, or NULL if clipped
userDatauser data (unused)

Returns