CollectPads.clipRunningTime

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

cdata gstbase.collect_data.CollectData

collect data of corresponding pad

buf gst.buffer.Buffer

buffer being clipped

outbuf gst.buffer.Buffer

output buffer with running time, or NULL if clipped

userData void*

user data (unused)

Return Value

Type: gst.types.FlowReturn