diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-11 15:48:54 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-08-11 15:48:54 +0200 |
commit | f7fff8b7be0cf0017cd83302439d3b44048669dc (patch) | |
tree | ccf8bcc398037f983e872a59029ec7ca506f93e9 /menu.c | |
parent | 0b73f060d0a3b72bfac3da139d2cb0e40b1a78bc (diff) | |
download | vdr-f7fff8b7be0cf0017cd83302439d3b44048669dc.tar.gz vdr-f7fff8b7be0cf0017cd83302439d3b44048669dc.tar.bz2 |
If there is no free DVB device to record, the log message will now be given only once
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.101 2001/08/11 15:04:05 kls Exp $ + * $Id: menu.c 1.102 2001/08/11 15:47:23 kls Exp $ */ #include "menu.h" @@ -2072,6 +2072,7 @@ cRecordControl::cRecordControl(cDvbApi *DvbApi, cTimer *Timer) Timers.Save(); asprintf(&instantId, cDvbApi::NumDvbApis > 1 ? "%s - %d" : "%s", Channels.GetChannelNameByNumber(timer->channel), dvbApi->CardIndex() + 1); } + timer->SetPending(true); timer->SetRecording(true); if (Channels.SwitchTo(timer->channel, dvbApi)) { cRecording Recording(timer); @@ -2134,8 +2135,8 @@ bool cRecordControls::Start(cTimer *Timer) } } } - else if (!Timer || Timer->priority >= Setup.PrimaryLimit) - esyslog(LOG_ERR, "ERROR: no free DVB device to record channel %d!", ch); + else if (!Timer || (Timer->priority >= Setup.PrimaryLimit && !Timer->pending)) + isyslog(LOG_ERR, "no free DVB device to record channel %d!", ch); } else esyslog(LOG_ERR, "ERROR: channel %d not defined!", ch); |