clip_running_time


Description:

public FlowReturn clip_running_time (CollectData cdata, Buffer buf, out Buffer outbuf, void* user_data)

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:

this

the collectpads to use

cdata

collect data of corresponding pad

buf

buffer being clipped

outbuf

output buffer with running time, or NULL if clipped

user_data

user data (unused)