summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-10-31 09:47:14 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2017-10-31 09:47:14 +0100
commit19275aa8bbc3407406d473debf316d0dbe6f45e3 (patch)
tree93328431f7d1aaff7a1665091c93ebe858a4ebb0 /vdr.c
parent7bbbfb0dee56942458968e538830a3e5ec785bb5 (diff)
downloadvdr-19275aa8bbc3407406d473debf316d0dbe6f45e3.tar.gz
vdr-19275aa8bbc3407406d473debf316d0dbe6f45e3.tar.bz2
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
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c4
1 files changed, 3 insertions, 1 deletions
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 <getopt.h>
@@ -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: