GStreamer plugin search path?

时光总嘲笑我的痴心妄想 提交于 2019-12-04 01:31:24

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

GstRegistry *registry;
registry = gst_registry_get_default();
gst_registry_add_path(registry, directory);
KDawg

You can no longer do this programmatically in gstreamer 1.0.

In the above answer,

gst_registry_get_default() was replaced with gst_registry_get() and gst_registry_add_path() was removed.

You can also set GST_PLUGIN_SYSTEM_PATH to the location of the Plugins. Not sure what the difference is between this and GST_PLUGIN_PATH though.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!