Bin.findUnlinkedPad

Recursively looks for elements with an unlinked pad of the given direction within the specified bin and returns an unlinked pad if one is found, or NULL otherwise. If a pad is found, the caller owns a reference to it and should use gst_object_unref() on the pad when it is not needed any longer.

class Bin
findUnlinkedPad

Parameters

direction GstPadDirection

whether to look for an unlinked source or sink pad

Return Value

Type: Pad

unlinked pad of the given direction, NULL.