diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2019-05-23 10:00:48 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2019-05-23 10:00:48 +0200 |
commit | 4242fa7f22fe31e210640971b2bf21232a23807d (patch) | |
tree | 4a843cc508d343c7bec574e95efc10d53abe7ac9 /timers.c | |
parent | abdab188079e7db7ec22f18171ac300b16e8e8a9 (diff) | |
download | vdr-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()); |