gst_plugins_base/gst/tcp/gsttcp.c
branchRCL_3
changeset 29 567bb019e3e3
parent 0 0e761a78d257
child 30 7e817e7e631c
--- 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 <gst/gst-i18n-plugin.h>
-#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;
 }