load a plugin which depends on another shared library.
tim at centricular.com
Tue Jun 23 01:58:26 PDT 2015
On Tue, 2015-06-23 at 00:18 -0700, SpicyChicken wrote:
> I am using gst_plugin_load_file() to load a plugin but this plugin(so
> library) depends on another shared library. When I test the pipeline in
> command line, I just set LD_PELOAD and run the command as following:
> LD_PRELOAD=<dependent shared library > gst-launch-1.0 "pipeline description"
> and it works.
> Now, I am coding to implement it, I have tried to setenv of LD_PRELOAD, but
> it doesn't work. I am not sure how to make it work, and how about the API
> Any one can help? Thanks,
Why don't you just link your plugin against that shared library? (Like
most other plugins do..)
gst_plugin_add_dependency_simple() won't help with this.
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel