New adventures in 0.11 and python

pecisk at gmail.com pecisk at gmail.com
Sun Jan 29 09:48:07 PST 2012


>>
>> 1) parse_launch
>>
>> e = Gst.parse_launch("fakesrc"); print e
>>
>> just segfaults.  Looking inside gdb, the object python is trying to
>> print doesn't contain a valid GObject.  Does this work for anyone else ?
>>
>> If I change transfer-ownership from full to none, things work, so there
>> must be a leak somewhere.
>
> Should probably be (transfer floating), but also see the following
> gobject-introspection/pygi bug:
>
>  https://bugzilla.gnome.org/show_bug.cgi?id=657202

Interesting, for this one patch was committed on Thursday:
http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?h=0.11&id=42a6e487c854d9cdcd8e99f0a15cecd53748bd3d

See
http://cgit.freedesktop.org/gstreamer/gstreamer/tree/gst/gstparse.c?h=0.11#n273.

However, maybe that wasn't enough, because there are bunch of
introspected parse_launch sub-variants, which all require
investigation don't they need '(transfer floating)'. Fixing
gst_parse_launch with (transfer floating) worked for me.

I'm hoping to update my notes from hackfest tomorrow and post URL
here. Then I hope to kick start some sort of Gst Porting guide for
Python.

Cheers,
Peter.


More information about the gstreamer-devel mailing list