[gst-devel] (pygst) issue with deprecated element

Pablo Rodríguez oinos at web.de
Sun Feb 6 14:09:45 CET 2011


Hi there,

some time ago I wrote a small program to record from mic using pygst.

It worked fine until I installed Fedora 14 (pygtk2-2.17 and 
gstreamer-python-0.10.19.

The relevant part is the following:

     self.player = gst.Pipeline("player")
     self.clock = self.player.get_clock()

     self.source = gst.element_factory_make("alsasrc", "alsa-source")

     self.encoder = gst.element_factory_make("wavenc", "wavenc")

     self.fileout = gst.element_factory_make("filesink", "filesink")
     self.fileout.set_property("location", self.filename + "-audio.wav")

     self.player.add(self.source, self.encoder, self.fileout)
     gst.element_link_many(self.source, self.encoder, self.fileout)

And I get the following error:

     ** Message: pygobject_register_sinkfunc is deprecated (GstObject)

How I can I avoid this error?

Thanks in advance,


Pablo
-- 
http://www.ousia.tk




More information about the gstreamer-devel mailing list