summaryrefslogtreecommitdiff
path: root/src/input/input_dvb.c
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2011-10-26 20:06:44 +0100
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2011-10-26 20:06:44 +0100
commit4e264feffade0d266f5c624ea2972d6e31f9ba22 (patch)
tree80137268b1dff0d225e0d5f2bc091d49e135c4d5 /src/input/input_dvb.c
parentb79a6345c075d6d07a45794888136c792c687568 (diff)
parent7991c3891d62ccbcfe8fc9670b03907444e7910d (diff)
downloadxine-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.c8
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 );