pygobject_register_sinkfunc is deprecated (GstObject)

Pablo Rodriguez oinos at gmx.es
Sun Dec 22 12:51:22 PST 2013


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:

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

        self.source = gst.element_factory_make("alsasrc", "alsa-source")
        self.caps = gst.Caps("audio/x-raw-int,rate=16000,channels=1")
        self.filter = gst.element_factory_make("capsfilter", "filter")
        self.filter.set_property("caps", self.caps)

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

        self.fileout = gst.element_factory_make("filesink", "sink")
        self.fileout.set_property("location", self.audiofilename )

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

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?

Many thanks for your help,


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


More information about the gstreamer-devel mailing list