diff -r 71e347f905f2 -r 4a7fac7dd34a gst_plugins_base/gst/tcp/gsttcp.c --- a/gst_plugins_base/gst/tcp/gsttcp.c Fri Mar 19 09:35:09 2010 +0200 +++ b/gst_plugins_base/gst/tcp/gsttcp.c Fri Apr 16 15:15:52 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; }