From: Wim Taymans Date: Fri, 29 Sep 2006 08:20:03 +0000 (+0000) Subject: gst/tcp/gstmultifdsink.c: Stop reading commands when EOF (we read 0) as well. X-Git-Tag: RELEASE-0_10_11~112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d9b2fbbe0e33d55da16c15067c6cd3652da3890a;p=platform%2Fupstream%2Fgst-plugins-base.git gst/tcp/gstmultifdsink.c: Stop reading commands when EOF (we read 0) as well. Original commit message from CVS: * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_handle_clients): Stop reading commands when EOF (we read 0) as well. --- diff --git a/ChangeLog b/ChangeLog index 4d17ec954..96e8d139a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-09-29 Wim Taymans + + * gst/tcp/gstmultifdsink.c: (gst_multi_fd_sink_handle_clients): + Stop reading commands when EOF (we read 0) as well. + 2006-09-28 Wim Taymans * gst/playback/gstdecodebin.c: (dynamic_create), (dynamic_free), diff --git a/gst/tcp/gstmultifdsink.c b/gst/tcp/gstmultifdsink.c index 8ff1d2f5b..308c5b3fd 100644 --- a/gst/tcp/gstmultifdsink.c +++ b/gst/tcp/gstmultifdsink.c @@ -2190,7 +2190,7 @@ gst_multi_fd_sink_handle_clients (GstMultiFdSink * sink) int res; READ_COMMAND (sink, command, res); - if (res < 0) { + if (res <= 0) { GST_LOG_OBJECT (sink, "no more commands"); /* no more commands */ break;