From 19275aa8bbc3407406d473debf316d0dbe6f45e3 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 31 Oct 2017 09:47:14 +0100 Subject: Fixed an invalid lock sequence when trying to remove a deleted recording in case of low disk space; now making sure that AssertFreeDiskSpace() is called with the maximum timer priority in case there are several timers recording with different priorities --- vdr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vdr.c') diff --git a/vdr.c b/vdr.c index d92c6297..fe104df2 100644 --- a/vdr.c +++ b/vdr.c @@ -22,7 +22,7 @@ * * The project's page is at http://www.tvdr.de * - * $Id: vdr.c 4.18 2017/06/10 11:53:39 kls Exp $ + * $Id: vdr.c 4.19 2017/10/31 09:46:22 kls Exp $ */ #include @@ -1171,6 +1171,8 @@ int main(int argc, char *argv[]) // Trigger remote timer polls: if (TriggerRemoteTimerPoll) Timers->TriggerRemoteTimerPoll(); + // Make sure there is enough free disk space for ongoing recordings: + AssertFreeDiskSpace(Timers->GetMaxPriority()); TimersStateKey.Remove(TimersModified); } // Recordings: -- cgit v1.2.3