fix ambiguos message of error on read return
authorAngel Carpintero <ack@telefonica.net>
Fri, 29 Aug 2003 13:09:26 +0000 (13:09 +0000)
committerAngel Carpintero <ack@telefonica.net>
Fri, 29 Aug 2003 13:09:26 +0000 (13:09 +0000)
Original commit message from CVS:
fix ambiguos message of error on read return

gst/tcp/gsttcpsrc.c

index 906a541..2f58811 100644 (file)
@@ -294,7 +294,10 @@ gst_tcpsrc_get (GstPad *pad)
       }
       
       else {
-       perror ("read");
+        if (numbytes == -1){
+               perror ("read");
+       }
+       else g_print("End of Stream reached\n");
         gst_buffer_unref (outbuf);
         outbuf = NULL;
        close (tcpsrc->client_sock);