diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-10-18 11:40:01 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2011-10-18 11:40:01 +0300 |
commit | 29f7af688b53a81ba1a96c31757b86fde699e679 (patch) | |
tree | 01bf70ec660e29c0575dd72855cec0001812f896 /src/input/input_dvb.c | |
parent | b79a6345c075d6d07a45794888136c792c687568 (diff) | |
parent | 5c160b93ade6a07e3bcc084f4552dcd1eb70b5b4 (diff) | |
download | xine-lib-29f7af688b53a81ba1a96c31757b86fde699e679.tar.gz xine-lib-29f7af688b53a81ba1a96c31757b86fde699e679.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 ); |