[Sugar-devel] how to use custom gstreamer elements bundled in activities?

Erik Blankinship erikb at mediamods.com
Sat Dec 11 18:41:10 EST 2010


On Sat, Dec 11, 2010 at 2:40 AM, Aleksey Lim <alsroot at member.fsf.org> wrote:

> On Sat, Dec 11, 2010 at 01:30:22AM -0500, Erik Blankinship wrote:
> > Some more research suggests I need to specify a GST_PLUGIN_PATH for my
> > activity.
> > http://stackoverflow.com/questions/2120444/gstreamer-plugin-search-path
> >
> > I am having a hard time figuring out how to do this in pygst.  The
> bindings
> > are great, but sometimes obscure.  Any pygst experts out there?
>
> I guess just setting envar before including any gst related imports
> should work:
>
>    import os
>    from sugar.activity.activity import get_bundle_path
>
>    os.environ['GST_PLUGIN_PATH'] = get_bundle_path()
>
>
Thank you Aleksey, that works!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20101211/5aee5630/attachment.html>


More information about the Sugar-devel mailing list