set_link_function


Description:

[ CCode ( cname = "gst_pad_set_link_function_full" ) ]
public void set_link_function (PadLinkFunction link, void* user_data = null, DestroyNotify? notify = null)

Sets the given link function for the pad.

It will be called when the pad is linked with another pad.

The return value OK should be used when the connection can be made.

The return value REFUSED should be used when the connection cannot be made for some reason.

If link is installed on a source pad, it should call the PadLinkFunction of the peer sink pad, if present.

Parameters:

this

a Pad.

link

the PadLinkFunction to set.

notify

notify called when link will not be used anymore.

user_data

user_data passed to notify




2022 vala-language.org