Hi.<br>I am developing an application using pygst and tcpserversrc with
tcpclientsink. Aside some unnecessary stuff for that matter, my program
is as the one in this tutorial [<a href="http://www.jejik.com/articles/2007/01/streaming_audio_over_tcp_with_python-gstreamer/" target="_blank">http://www.jejik.com/articles/2007/01/streaming_audio_over_tcp_with_python-gstreamer/</a> ], adding a bus_watch on each side (server and client) that listens for an EOS message.<br>

<br>I am aware that network streaming is used principally for live
stream, but in this case I want to be able to detect when a stream sent
to the server has ended. Tcpserversrc does not provide an EOS message
after is not receiving data, and I don&#39;t know if that is the
functionality or is a bug. In the debug file I can see that when the
audio in the server, which goes through an alsasink, has stopped
playing, I get the following message:<br>
<br>basesrc gstbasesrc.c:2056:gst_base_<div id=":20o" class="ArwC7c ckChnd">src_loop:&lt;tcpserversrc0&gt; pausing after gst_base_src_get_range() = wrong-state<br><br>but I am unable to find the reason for that error. The pipeline doesn&#39;t go to NULL state neither.<br>

<br>Using gstreamer 0.10.18 with pygst 0.10.11<br><br>The same message can be obtained using the command lines at the server and client sides, respectively<br><br>gst-launch-0.10 tcpserversrc host=localhost port=8080 ! decodebin ! audioconvert ! alsasink<br>

gst-launch-0.10 filesrc location=/home/test.mp3 ! tcpclientsink host=localhost port=8080<br><br>The full debug file for the server is here [<a href="http://pastie.org/349940" target="_blank">http://pastie.org/349940</a>], with the mentioned line highlighted.<br>

<br>Thanks in Advance<br><br>Ruben M</div>