truncate


Description:

public Caps truncate ()

Discard all but the first structure from this.

Useful when fixating.

This function takes ownership of this and will call gst_caps_make_writable on it if necessary, so you must not use this afterwards unless you keep an additional reference to it with gst_caps_ref .

Parameters:

this

the Caps to truncate

Returns:

truncated caps