I’ve got a slightly weird problem. I’m trying to build an application, and I want to check that certain GStreamer plugins are available at meson setup time. I thought I could use gst-inspect-1.0 --exists to find whether the plugins exist, but for some reason not every plugin that is installed on the system results in a return value of 0. However, if I list all the plugins available it appears in that list, and using gst-inspect-1.0 without the --exists flag shows the properties of the plugin just fine.
I’ve looked into how gst-inspect-1.0 works, and it seems that for the --exists flag, it relies on the gst_registry_lookup_feature command. More confusingly still, if I create a noddy application which calls that directly, it works:
I should also mention that I’ve got these plugins installed in a different location to where the regular plugins live, which is then provided using the GST_PLUGIN_PATH environment variable.