From 8cf4f488929a61912f4f73807929c22f49b27b5f Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 18 Feb 2010 11:42:55 -0800 Subject: tcp(client/server)src: Fix handling of closed sockets The peer closing the socket should cause an EOS, instead of silently doing nothing. This changes the behavior to be more like fdsrc. Fixes: #610386 --- gst/tcp/gsttcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/tcp/gsttcp.c b/gst/tcp/gsttcp.c index 9bf2666d..5e8aae7c 100644 --- a/gst/tcp/gsttcp.c +++ b/gst/tcp/gsttcp.c @@ -284,7 +284,7 @@ ioctl_error: got_eos: { GST_DEBUG_OBJECT (this, "Got EOS on socket stream"); - return GST_FLOW_WRONG_STATE; + return GST_FLOW_UNEXPECTED; } read_error: { -- cgit