(pygst) issue with deprecated element

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

(pygst) issue with deprecated element

Pablo Rodríguez
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

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: (pygst) issue with deprecated element

Pablo Rodríguez
On 02/06/2011 02:09 PM, Pablo Rodríguez wrote:

> 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.
>
> [...]
>
> And I get the following error:
>
>       ** Message: pygobject_register_sinkfunc is deprecated (GstObject)
>
> How I can I avoid this error?

Sorry for the noise.

I have just discovered that it wasn't this message what was preventing
the code from working, it was another bug that I've already fixed.

I would be interested know how to write the sink with the new command,
but the program works fine for me.

Sorry again,


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

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel