GStreamer插件搜索路径? [英] GStreamer plugin search path?

查看:416
本文介绍了GStreamer插件搜索路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以以某种方式告诉GStreamer在指定目录中寻找插件吗?

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

推荐答案

使用GST_PLUGIN_PATH环境变量指向所需的目录,或者以编程方式仅调用:

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);

这篇关于GStreamer插件搜索路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆