summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2019-05-23 10:00:48 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2019-05-23 10:00:48 +0200
commit4242fa7f22fe31e210640971b2bf21232a23807d (patch)
tree4a843cc508d343c7bec574e95efc10d53abe7ac9 /timers.c
parentabdab188079e7db7ec22f18171ac300b16e8e8a9 (diff)
downloadvdr-4242fa7f22fe31e210640971b2bf21232a23807d.tar.gz
vdr-4242fa7f22fe31e210640971b2bf21232a23807d.tar.bz2
Fixed asserting free disk space in case there is no local timer currently recording
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index 8119b858..e4701ffa 100644
--- a/timers.c
+++ b/timers.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: timers.c 4.18 2018/03/17 10:07:19 kls Exp $
+ * $Id: timers.c 4.19 2019/05/23 09:46:32 kls Exp $
*/
#include "timers.h"
@@ -819,7 +819,7 @@ const cTimer *cTimers::GetMatch(const cEvent *Event, eTimerMatch *Match) const
int cTimers::GetMaxPriority(void) const
{
- int n = 0;
+ int n = -1;
for (const cTimer *ti = First(); ti; ti = Next(ti)) {
if (!ti->Remote() && ti->Recording())
n = max(n, ti->Priority());