[gst-devel] code with optional plugins

Tim-Philipp Müller t.i.m at zen.co.uk
Sun Sep 5 17:22:41 CEST 2010


On Sun, 2010-09-05 at 10:28 +0200, Alexey Fisher wrote:

> i wont to make videomaxrate and postproc_tmpnoise optional. If these are
> not installed i will pipeline should work.
> Are there any easy option to do this? Or i need to create different
> gst_bin_add_many and gst_element_link_many for different situations?

You don't have to gst_bin_add* all elements to the pipeline in one go,
so just keep your gst_bin_add_many() and then gst_bin_add() the optional
elements one-by-one if they exist.

Alternatively, just create "identity" elements if those optional
elements don't exist, then you can gst_bin_add*() and _link*()
unconditionally.

Cheers
 -Tim





More information about the gstreamer-devel mailing list