From: Thomas Vander Stichele Date: Wed, 11 Aug 2004 10:56:33 +0000 (+0000) Subject: fix debug levels X-Git-Tag: BRANCH-GSTREAMER-0_8-ROOT~719 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=930a02f6e5f80f3aa6ff714dbca62fa7a101c674;p=platform%2Fupstream%2Fgst-plugins-base.git fix debug levels Original commit message from CVS: fix debug levels --- diff --git a/gst/tcp/gsttcp.c b/gst/tcp/gsttcp.c index 816ceb4..7422938 100644 --- 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;