GNOME Bugzilla – Bug 339571
[gdp] needs to handle events - tcpclientsink / tcpserversrc example not working
Last modified: 2010-12-05 01:38:50 UTC
Please describe the problem: trying to send audio over tcp gives the following results <wingo> and the reason is that gstreamer isn't sending events over gdp, and not handling newsegment sensibly Steps to reproduce: for server: gst-launch-0.10 tcpserversrc protocol=gdp ! alsasink for client: gst-launch-0.10 filesrc location=/usr/share/sounds/shutdown.wav ! wavparse ! tcpclientsink protocol = gdp Actual results: I get lots and lots of the following message: (gst-launch-0.10:8526): GStreamer-CRITICAL **: gst_segment_clip: assertion `segment->format == format' failed Expected results: Does this happen every time? yup, wingo got the problem as well Other information:
Seems to work fine for me now with current CVS if I insert gdppay and gdpdepay elements (not sure they are meant to be used like this): $ gst-launch-0.10 tcpserversrc protocol=gdp ! gdpdepay ! alsasink $ gst-launch-0.10 filesrc location=foo.ogg ! decodebin ! audioconvert ! audioresample ! gdppay ! tcpclientsink protocol = gdp
The protocol=gdp feature of the tcp elements has been deprecated in favor of the gdppay/gdpdepay elements. (And you don't want to set protocol=gdp, as Tim does in the above pipelines.) And gdppay/gdpdepay do pass events. Marking as INVALID, but it may not have been invalid at the time it was filed.