GST_PLUGIN_PATH vs registry.add_path

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

GST_PLUGIN_PATH vs registry.add_path

Oleksandr Lavrushchenko
Hi all,

i want to load custom plugins (*.so) placed in $PWD, from python application.
I'm aware that i can export GST_PLUGIN_PATH variable, from shell and
then start app, but i prefer to configure this internally
in app. Google search giving me this exaple in C:

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

http://stackoverflow.com/questions/2120444/gstreamer-plugin-search-path/2213274#2213274

But my try to reassemble it in python unfortunately fail:

import gst
reg=gst.registry_get_default()
reg.add_path(path,"./");

Seems, like last call rewrite path completly instead of adding to system path.


Will be glad to hear an advice on how to do it right way. Thanks.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GST_PLUGIN_PATH vs registry.add_path

Stefan Sauer
Hi,

Am 04.04.2011 22:23, schrieb Oleksandr Lavrushchenko:

> Hi all,
>
> i want to load custom plugins (*.so) placed in $PWD, from python application.
> I'm aware that i can export GST_PLUGIN_PATH variable, from shell and
> then start app, but i prefer to configure this internally
> in app. Google search giving me this exaple in C:
>
> GstRegistry *registry;
> registry = gst_registry_get_default();
> gst_registry_add_path(registry, directory);
>
> http://stackoverflow.com/questions/2120444/gstreamer-plugin-search-path/2213274#2213274
>
> But my try to reassemble it in python unfortunately fail:
>
> import gst
> reg=gst.registry_get_default()
> reg.add_path(path,"./");
>
> Seems, like last call rewrite path completly instead of adding to system path.
>
>
> Will be glad to hear an advice on how to do it right way. Thanks.
> _______________________________________________

I was trying to do that a while ago myself too and saw that the api is
completely unimplemented.
https://bugzilla.gnome.org/show_bug.cgi?id=608841

Stefan
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: GST_PLUGIN_PATH vs registry.add_path

Oleksandr Lavrushchenko
On Mon, 4 Apr 2011, Stefan Kost wrote:
>
> I was trying to do that a while ago myself too and saw that the api is
> completely unimplemented.
> https://bugzilla.gnome.org/show_bug.cgi?id=608841

This is sad of course.

Thanks, you save few hours of my life.

--
WBR Olekѕandr Lavruschenko
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel