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:
parent
6310d277da
commit
72d12d7407
@ -294,7 +294,10 @@ gst_tcpsrc_get (GstPad *pad)
|
|||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
perror ("read");
|
if (numbytes == -1){
|
||||||
|
perror ("read");
|
||||||
|
}
|
||||||
|
else g_print("End of Stream reached\n");
|
||||||
gst_buffer_unref (outbuf);
|
gst_buffer_unref (outbuf);
|
||||||
outbuf = NULL;
|
outbuf = NULL;
|
||||||
close (tcpsrc->client_sock);
|
close (tcpsrc->client_sock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user