how to check in gstreamer if a element is available

Tim Müller tim at centricular.com
Tue Sep 15 08:09:26 PDT 2015


On Tue, 2015-09-15 at 16:53 +0200, Alicia Romero wrote:

Hi Alicia,

> is there a way in gstreamer to check if an element is available
> without creating it?

This should work:


if (gst_registry_check_feature_version (gst_registry_get (),
    "foobar", GST_VERSION_MAJOR, 0, 0)) {
  ...
}

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com

Join us at the GStreamer Conference: 8-9 October 2015 in Dublin, Ireland




More information about the gstreamer-devel mailing list