diff -r 9b2c3c7a1a9c -r 567bb019e3e3 gst_plugins_base/gst/tcp/gsttcp.c --- a/gst_plugins_base/gst/tcp/gsttcp.c Wed Mar 31 22:03:18 2010 +0300 +++ b/gst_plugins_base/gst/tcp/gsttcp.c Tue Aug 31 15:30:33 2010 +0300 @@ -37,11 +37,7 @@ #endif #include "gsttcp.h" -#ifdef __SYMBIAN32__ -#include "gst/gst-i18n-plugin.h" -#else #include -#endif GST_DEBUG_CATEGORY_EXTERN (tcp_debug); #define GST_CAT_DEFAULT tcp_debug @@ -126,15 +122,13 @@ count - bytes_written, MSG_NOSIGNAL); if (wrote <= 0) { + GST_WARNING ("error while writing"); return bytes_written; } bytes_written += wrote; } - if (bytes_written < 0) - GST_WARNING ("error while writing"); - else - GST_LOG ("wrote %" G_GSIZE_FORMAT " bytes succesfully", bytes_written); + GST_LOG ("wrote %" G_GSIZE_FORMAT " bytes succesfully", bytes_written); return bytes_written; }