fix ambiguos message of error on read return

Original commit message from CVS:
fix ambiguos message of error on read return
This commit is contained in:
Angel Carpintero 2003-08-29 13:09:26 +00:00
parent 6310d277da
commit 72d12d7407

View file

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