Making filtered links

You can also force a specific media type on the link by using gst_pad_link_filtered () and gst_element_link_filtered () with capabilities. See the Section called Capabilities of a pad in the chapter called Pads for an explanation of capabilities.