summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorZaheer Abbas Merali <zaheerabbas@merali.org>2007-10-31 13:31:08 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2007-10-31 13:31:08 +0000
commit1571bc2336eb4e35df921d6a80cc9d53e096e0c8 (patch)
tree4f70a59d48e7f359f34ea048e2de3a490ad2047f /sys
parent0f6e8ea21f39ae041ea0a453cc69985cf137a3cc (diff)
downloadgst-plugins-bad-1571bc2336eb4e35df921d6a80cc9d53e096e0c8.tar.gz
gst-plugins-bad-1571bc2336eb4e35df921d6a80cc9d53e096e0c8.tar.bz2
gst-plugins-bad-1571bc2336eb4e35df921d6a80cc9d53e096e0c8.zip
sys/dvb/camswclient.c: Warn on failed write.
Original commit message from CVS: * sys/dvb/camswclient.c: Warn on failed write.
Diffstat (limited to 'sys')
-rw-r--r--sys/dvb/camswclient.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dvb/camswclient.c b/sys/dvb/camswclient.c
index d956f3c9..b0747a15 100644
--- a/sys/dvb/camswclient.c
+++ b/sys/dvb/camswclient.c
@@ -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);