diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2011-10-26 20:06:44 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2011-10-26 20:06:44 +0100 |
commit | 4e264feffade0d266f5c624ea2972d6e31f9ba22 (patch) | |
tree | 80137268b1dff0d225e0d5f2bc091d49e135c4d5 /src/input/input_dvb.c | |
parent | b79a6345c075d6d07a45794888136c792c687568 (diff) | |
parent | 7991c3891d62ccbcfe8fc9670b03907444e7910d (diff) | |
download | xine-lib-4e264feffade0d266f5c624ea2972d6e31f9ba22.tar.gz xine-lib-4e264feffade0d266f5c624ea2972d6e31f9ba22.tar.bz2 |
Merge from 1.1.
Diffstat (limited to 'src/input/input_dvb.c')
-rw-r--r-- | src/input/input_dvb.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c index cb2c48e2c..b5833871f 100644 --- a/src/input/input_dvb.c +++ b/src/input/input_dvb.c @@ -2566,8 +2566,12 @@ static off_t dvb_plugin_read (input_plugin_t *this_gen, ts_rewrite_packets (this, buf,total); - if ((this->record_fd)&&(!this->record_paused)) - write (this->record_fd, buf, total); + if ((this->record_fd > -1) && (!this->record_paused)) + 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 ); |