Search code examples
cgstreamer

GStreamer plugin search path?


Can I somehow tell GStreamer to look for plugins in a specified directory?


Solution

  • Use the GST_PLUGIN_PATH environment variable to point at the directory you want, or programatically just call:

    GstRegistry *registry;
    registry = gst_registry_get();
    gst_registry_scan_path(registry, directory);