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 /vdr.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 'vdr.c')
-rw-r--r-- | vdr.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 4.29 2019/03/18 11:17:07 kls Exp $ + * $Id: vdr.c 4.30 2019/05/23 09:48:35 kls Exp $ */ #include <getopt.h> @@ -1182,7 +1182,9 @@ int main(int argc, char *argv[]) if (Timers->DeleteExpired()) TimersModified = true; // Make sure there is enough free disk space for ongoing recordings: - AssertFreeDiskSpace(Timers->GetMaxPriority()); + int MaxPriority = Timers->GetMaxPriority(); + if (MaxPriority >= 0) + AssertFreeDiskSpace(MaxPriority); TimersStateKey.Remove(TimersModified); } // Recordings: |