GNOME Bugzilla – Bug 493831
[tcpserversink] errors out if first buffer has no caps
Last modified: 2008-07-21 16:18:00 UTC
I run this command line and got this error. I have a kernel with support to DCCP. I don't know if it is important. ~$ gst-launch filesrc location=workspace/Write/ola.txt ! tcpserversink Deixando a conexão como PAUSADA ... A conexão está fazendo PREROLL ... A conexão teve feito o PREROLL ... Deixando a conexão em TOCANDO ... New clock: GstSystemClock ERRO: do elemento /pipeline0/tcpserversink0: Internal GStreamer error: negotiation problem. Please file a bug at http://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer. Informação de depuração adicional: gstmultifdsink.c(2530): gst_multi_fd_sink_render (): /pipeline0/tcpserversink0: Received first buffer without caps set Execution ended after 333000 ns. Deixando a conexão como PAUSADA ... Deixando a conexão em PRONTA ... Deixando a conexão em NULL ... LIBERANDO a conexão ...
This seems to be by design: tcpserversink will error out if the first buffer doesn't have caps set on it (this is so tcpserversink can send stream headers and the like to newly-connected clients). I'm not sure if this is really necessary though, possibly it could just treat no_caps the same as caps-without-streamheaders, as long as the protocol is not GDP. In any case, for now you need to do something like this: gst-launch-0.10 filesrc location=foo.txt ! typefind ! tcpserversink (which may not work if the file is too small or not in ASCII or UTF-8 encoding), or: gst-launch-0.10 filesrc location=foo.txt ! text/plain ! tcpserversink or something similar.
*** Bug 502620 has been marked as a duplicate of this bug. ***
As this can be easily worked around if needed (typefind) and seems to be by design let's close this bug.
*** Bug 543977 has been marked as a duplicate of this bug. ***