gst/tcp/gstmultifdsink.c: Stop reading commands when EOF (we read 0) as well.
authorWim Taymans <wim.taymans@gmail.com>
Fri, 29 Sep 2006 08:20:03 +0000 (08:20 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Fri, 29 Sep 2006 08:20:03 +0000 (08:20 +0000)
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.

ChangeLog
gst/tcp/gstmultifdsink.c

index 4d17ec9547cad4191a45d51ffbfab155145b70e3..96e8d139aac60a7bce294b883398bdddd8f2756d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-09-29  Wim Taymans  <wim@fluendo.com>
+
+       * 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  <wim@fluendo.com>
 
        * gst/playback/gstdecodebin.c: (dynamic_create), (dynamic_free),
index 8ff1d2f5b43831907044b1e478d639ab4481ac57..308c5b3fd36057a37116db82f2261c6d34e38208 100644 (file)
@@ -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;