[gst-devel] code with optional plugins
Alexey Fisher
bug-track at fisher-privat.net
Sun Sep 5 10:28:21 CEST 2010
Hallo all,
i have this kind peas of code:
=======================================================================
GstElement *maxrate, *scale, *colorspace, *noisefilter, *capsfilter;
GstPad *ghost, *src;
GstCaps *caps;
maxrate = gst_element_factory_make ("videomaxrate", NULL);
scale = gst_element_factory_make ("videoscale", NULL);
colorspace = gst_element_factory_make ("ffmpegcolorspace", NULL);
noisefilter = gst_element_factory_make ("postproc_tmpnoise", NULL);
gst_bin_add_many (GST_BIN (obj), priv->src, maxrate, scale,
colorspace,
noisefilter, capsfilter, NULL);
gst_element_link_many (priv->src, maxrate, scale, colorspace,
noisefilter, capsfilter, NULL);
========================================================================
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?
Regards,
Alexey
More information about the gstreamer-devel
mailing list