mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
The editing process now calls AssertFreeDiskSpace()
This commit is contained in:
parent
f0a4b1c417
commit
53c5499a0b
2
HISTORY
2
HISTORY
@ -914,3 +914,5 @@ Video Disk Recorder Revision History
|
||||
- Fixed setting the LastActivity timestamp after a shutdown prompt (thanks to
|
||||
Sergei Haller).
|
||||
- A message is now prompted if free disk space becomes low during recording.
|
||||
- The editing process now calls AssertFreeDiskSpace() to remove deleted
|
||||
recordings if the disk becomes full.
|
||||
|
6
dvbapi.c
6
dvbapi.c
@ -7,7 +7,7 @@
|
||||
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
|
||||
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
|
||||
*
|
||||
* $Id: dvbapi.c 1.144 2002/01/26 13:42:15 kls Exp $
|
||||
* $Id: dvbapi.c 1.145 2002/01/26 15:28:41 kls Exp $
|
||||
*/
|
||||
|
||||
//#define DVDDEBUG 1
|
||||
@ -2371,6 +2371,10 @@ void cCuttingBuffer::Action(void)
|
||||
int FileOffset, Length;
|
||||
uchar PictureType;
|
||||
|
||||
// Make sure there is enough disk space:
|
||||
|
||||
AssertFreeDiskSpace();
|
||||
|
||||
// Read one frame:
|
||||
|
||||
if (fromIndex->Get(Index++, &FileNumber, &FileOffset, &PictureType, &Length)) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: recording.h 1.20 2002/01/20 16:05:24 kls Exp $
|
||||
* $Id: recording.h 1.21 2002/01/26 15:28:41 kls Exp $
|
||||
*/
|
||||
|
||||
#ifndef __RECORDING_H
|
||||
@ -15,7 +15,7 @@
|
||||
#include "tools.h"
|
||||
|
||||
void RemoveDeletedRecordings(void);
|
||||
void AssertFreeDiskSpace(int Priority);
|
||||
void AssertFreeDiskSpace(int Priority = 0);
|
||||
|
||||
class cResumeFile {
|
||||
private:
|
||||
|
Loading…
Reference in New Issue
Block a user