pygobject_register_sinkfunc is deprecated (GstObject)

Sebastian Dröge sebastian at centricular.com
Mon Dec 23 04:05:22 PST 2013


On So, 2013-12-22 at 21:51 +0100, Pablo Rodriguez wrote:
> Hi there,
> 
> I have a small Python script
> (https://github.com/ousia/iRaccoonShow/blob/master/recslides.py) that
> records sound from microphone.
> 
> The relevant code is:
> 
> [...]
> With python-gstreamer-1.x I get the following message:
> 
>     ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
> 
> I thought that upgrading the library from 0.10.x to 1.x would remove the
> warning.
> 
> What am I missing here?

You're still using the 0.10 Python bindings (import gst), and also the
old, non-gi bindings for GTK, etc.

You'll have to use

from gi.repository import Gst
from gi.repository import Gtk

etc. Check the documentation or example code for the exact usage.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131223/1b8c4e61/attachment-0001.pgp>


More information about the gstreamer-devel mailing list