summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2011-10-18 09:44:08 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2011-10-18 09:44:08 +0300
commit165a7d69600daae3a5501569a8805e84d3122daf (patch)
tree72f5db31b082c6e78737384c71d7f5cf5b9e17b9 /src
parent7fa0e8ce9a31512dbc2ef4c6963ca727142bde6f (diff)
downloadxine-lib-165a7d69600daae3a5501569a8805e84d3122daf.tar.gz
xine-lib-165a7d69600daae3a5501569a8805e84d3122daf.tar.bz2
input_dvb: if write() fails, stop recording and log a message
Diffstat (limited to 'src')
-rw-r--r--src/input/input_dvb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c
index fc3c88862..f7fa51e16 100644
--- a/src/input/input_dvb.c
+++ b/src/input/input_dvb.c
@@ -2579,7 +2579,11 @@ static off_t dvb_plugin_read (input_plugin_t *this_gen,
ts_rewrite_packets (this, buf,total);
if ((this->record_fd > -1) && (!this->record_paused))
- write (this->record_fd, buf, total);
+ if (write (this->record_fd, buf, total) != total) {
+ do_record(this);
+ xprintf(this->class->xine, XINE_VERBOSITY_LOG,
+ "input_dvb: Recording failed\n");
+ }
pthread_mutex_unlock( &this->channel_change_mutex );