summaryrefslogtreecommitdiff
path: root/cutter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-08-21 13:46:13 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2013-08-21 13:46:13 +0200
commitacdfbb5aadea58af8c74011bb19ae05dfdd08d89 (patch)
treecea5b7058bac0ab27660df6394d211843f5e7867 /cutter.c
parentcd53d57779d9d93fbd96adb86e01690ff4dcbaf5 (diff)
downloadvdr-acdfbb5aadea58af8c74011bb19ae05dfdd08d89.tar.gz
vdr-acdfbb5aadea58af8c74011bb19ae05dfdd08d89.tar.bz2
Fixed asserting free disk space in the cutter
Diffstat (limited to 'cutter.c')
-rw-r--r--cutter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cutter.c b/cutter.c
index 6e5e662e..32c4e315 100644
--- a/cutter.c
+++ b/cutter.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: cutter.c 2.25.1.1 2013/05/02 09:21:18 kls Exp $
+ * $Id: cutter.c 2.25.1.2 2013/08/21 13:43:46 kls Exp $
*/
#include "cutter.h"
@@ -556,6 +556,8 @@ bool cCuttingThread::ProcessSequence(int LastEndIndex, int BeginIndex, int EndIn
bool Independent;
int Length;
if (LoadFrame(Index, Buffer, Independent, Length)) {
+ // Make sure there is enough disk space:
+ AssertFreeDiskSpace(-1);
bool CutIn = !SeamlessBegin && Index == BeginIndex;
bool CutOut = !SeamlessEnd && Index == EndIndex - 1;
bool DeletedFrame = false;
@@ -608,8 +610,6 @@ void cCuttingThread::Action(void)
cCondWait::SleepMs(100);
continue;
}
- // Make sure there is enough disk space:
- AssertFreeDiskSpace(-1);
// Determine the actual begin and end marks, skipping any marks at the same position:
cMark *EndMark = fromMarks.GetNextEnd(BeginMark);
// Process the current sequence: