[gst-devel] gst_plugin_load_file

Simon Holm Thøgersen account at cs.aau.dk
Thu Nov 20 12:52:46 CET 2008


ons, 19 11 2008 kl. 18:06 -0700, skrev Greg Rutz:
> I am currently using GStreamer 0.10.20 and loving it.  Great work, all of
> you.
> 
> I have a question about the implementation of g_plugin_load_file.  I would
> like to pass plain filenames without absolute or relative path directories
> and let my run-time loader use its own search path to find the shared
> library that contains the plugin.  However, because of a call to g_stat() in
> g_plugin_load_file, it will always fail unless the shared library happens to
> be in the current working directory.
> 
> My question is... does gstreamer depend on having relative or absolute
> directories specified for its plugin's shared libraries?  I commented out
> the g_stat() call and re-compiled gstreamer and it worked as I had
> originally hoped, but I'm not sure if I've created a potential problem that
> I'm just not seeing at this time.

Does using the --gst-plugin-path command line argument or the
GST_PLUGIN_PATH environment variable do the trick for you?


Simon Holm Thøgersen





More information about the gstreamer-devel mailing list