From 7fa0e8ce9a31512dbc2ef4c6963ca727142bde6f Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Tue, 18 Oct 2011 09:41:31 +0300 Subject: input_dvb: fixed check for recording file handle --- src/input/input_dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c index 145abc773..fc3c88862 100644 --- a/src/input/input_dvb.c +++ b/src/input/input_dvb.c @@ -2578,7 +2578,7 @@ static off_t dvb_plugin_read (input_plugin_t *this_gen, ts_rewrite_packets (this, buf,total); - if ((this->record_fd)&&(!this->record_paused)) + if ((this->record_fd > -1) && (!this->record_paused)) write (this->record_fd, buf, total); pthread_mutex_unlock( &this->channel_change_mutex ); -- cgit v1.2.3