projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45208fe
)
fix debug levels
author
Thomas Vander Stichele
<thomas@apestaart.org>
Wed, 11 Aug 2004 10:56:33 +0000
(10:56 +0000)
committer
Thomas Vander Stichele
<thomas@apestaart.org>
Wed, 11 Aug 2004 10:56:33 +0000
(10:56 +0000)
Original commit message from CVS:
fix debug levels
gst/tcp/gsttcp.c
patch
|
blob
|
history
diff --git
a/gst/tcp/gsttcp.c
b/gst/tcp/gsttcp.c
index
816ceb4
..
7422938
100644
(file)
--- a/
gst/tcp/gsttcp.c
+++ b/
gst/tcp/gsttcp.c
@@
-116,14
+116,15
@@
gst_tcp_socket_read (int socket, void *buf, size_t count)
ssize_t ret = read (socket, buf + bytes_read,
count - bytes_read);
- if (ret <= 0) {
+ if (ret < 0)
+ GST_WARNING ("error while reading: %s", g_strerror (errno));
+ if (ret <= 0)
return bytes_read;
- }
bytes_read += ret;
}
if (bytes_read < 0)
- GST_
DEBUG ("error while reading"
);
+ GST_
WARNING ("error while reading: %s", g_strerror (errno)
);
else
GST_DEBUG ("read %d bytes succesfully", bytes_read);
return bytes_read;