sys/dvb/camswclient.c: Warn on failed write.
authorZaheer Abbas Merali <zaheerabbas@merali.org>
Wed, 31 Oct 2007 13:31:08 +0000 (13:31 +0000)
committerZaheer Abbas Merali <zaheerabbas@merali.org>
Wed, 31 Oct 2007 13:31:08 +0000 (13:31 +0000)
Original commit message from CVS:
* sys/dvb/camswclient.c:
Warn on failed write.

ChangeLog
sys/dvb/camswclient.c

index d55988bf3b874e1240a10dd0757b9b7aad536a5f..d194fdfb123b285926ad1b34d5ff798a22f554ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-10-31  Zaheer Abbas Merali  <zaheerabbas at merali dot org>
+
+       * sys/dvb/camswclient.c:
+       Warn on failed write.
+
 2007-10-30  Sebastian Dröge  <slomo@circular-chaos.org>
 
        * gst/equalizer/Makefile.am:
index d956f3c95d9100332c4c5609581b00cd8ac778ec..b0747a1501f2a63e44bc351f9407e16284889439 100644 (file)
@@ -135,7 +135,9 @@ send_ca_pmt (CamSwClient * client, GObject * pmt,
 
   cam_write_length_field (&buffer[3], ca_pmt_size);
 
-  write (client->sock, buffer, buffer_size);
+  if (write (client->sock, buffer, buffer_size) == -1) {
+    GST_WARNING ("write failed when sending pmt with errno: %d", errno);
+  }
 
   g_free (ca_pmt);
   g_free (buffer);