GNOME Bugzilla – Bug 739930
Port server-alsasrc-PCMA.py to version 1.x
Last modified: 2014-11-17 00:25:16 UTC
Hi, I followed the python gstreamer porting guide and ported tests/examples/rtp/server-alsasrc-PCMA.py to versionx 1.x
You seem to have not attached your ported version.
client-PCMA.py also needs ported if you feel like it!
Created attachment 290397 [details] [review] Patch
Sorry, I thought bugzilla can do it one go. Now the patch is attached. I will look at the client too.
Review of attachment 290397 [details] [review]: Looks good ::: tests/examples/rtp/server-alsasrc-PCMA.py @@ +69,3 @@ +sinkpad = Gst.Element.get_request_pad(rtpbin, 'send_rtp_sink_0') +srcpad = Gst.Element.get_static_pad(audiopay, 'src') +lres = Gst.Pad.link(srcpad, sinkpad) I wonder why we didn't do srcpad.link(sinkpad) here
Hi, I have updated the patch and includes the client now too. I tested both and it seems to work. I can at least hear the testsound.
Created attachment 290543 [details] [review] update of the PCMA test
Review of attachment 290543 [details] [review]: ::: tests/examples/rtp/client-PCMA.py @@ +36,3 @@ + +GObject.threads_init() +Gst.init(None) Gst.init(sys.argv) ::: tests/examples/rtp/server-alsasrc-PCMA.py @@ +22,3 @@ + +GObject.threads_init() +Gst.init(None) Same here
Created attachment 290568 [details] [review] added sys.argv to the patch
Pushed, thanks for the patch! commit 8aa263006865584b5dcc05378d18ff052e6f188e Author: Henning Heinold <henning@itconsulting-heinold.de> Date: Mon Nov 10 22:34:39 2014 +0100 examples: port python rtp PCMA client/server tests to 1.0 https://bugzilla.gnome.org/show_bug.cgi?id=739930