From 4242fa7f22fe31e210640971b2bf21232a23807d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Thu, 23 May 2019 10:00:48 +0200 Subject: Fixed asserting free disk space in case there is no local timer currently recording --- timers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'timers.c') 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()); -- cgit v1.2.3