From 1571bc2336eb4e35df921d6a80cc9d53e096e0c8 Mon Sep 17 00:00:00 2001 From: Zaheer Abbas Merali Date: Wed, 31 Oct 2007 13:31:08 +0000 Subject: [PATCH] sys/dvb/camswclient.c: Warn on failed write. Original commit message from CVS: * sys/dvb/camswclient.c: Warn on failed write. --- ChangeLog | 5 +++++ sys/dvb/camswclient.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d55988bf3b..d194fdfb12 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-31 Zaheer Abbas Merali + + * sys/dvb/camswclient.c: + Warn on failed write. + 2007-10-30 Sebastian Dröge * gst/equalizer/Makefile.am: diff --git a/sys/dvb/camswclient.c b/sys/dvb/camswclient.c index d956f3c95d..b0747a1501 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);