mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-12-27 07:11:05 +01:00
Direct access to several class members is now deprecated
This commit is contained in:
10
cutter.c
10
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.7 2011/08/20 09:57:27 kls Exp $
|
||||
* $Id: cutter.c 2.8 2011/08/21 11:08:08 kls Exp $
|
||||
*/
|
||||
|
||||
#include "cutter.h"
|
||||
@@ -75,7 +75,7 @@ void cCuttingThread::Action(void)
|
||||
if (!fromFile || !toFile)
|
||||
return;
|
||||
fromFile->SetReadAhead(MEGABYTE(20));
|
||||
int Index = Mark->position;
|
||||
int Index = Mark->Position();
|
||||
Mark = fromMarks.Next(Mark);
|
||||
off_t FileSize = 0;
|
||||
int CurrentFileNumber = 0;
|
||||
@@ -163,14 +163,14 @@ void cCuttingThread::Action(void)
|
||||
|
||||
// Check editing marks:
|
||||
|
||||
if (Mark && Index >= Mark->position) {
|
||||
if (Mark && Index >= Mark->Position()) {
|
||||
Mark = fromMarks.Next(Mark);
|
||||
toMarks.Add(LastIFrame);
|
||||
if (Mark)
|
||||
toMarks.Add(toIndex->Last() + 1);
|
||||
toMarks.Save();
|
||||
if (Mark) {
|
||||
Index = Mark->position;
|
||||
Index = Mark->Position();
|
||||
Mark = fromMarks.Next(Mark);
|
||||
CurrentFileNumber = 0; // triggers SetOffset before reading next frame
|
||||
cutIn = true;
|
||||
@@ -212,7 +212,7 @@ bool cCutter::Start(const char *FileName)
|
||||
cMarks FromMarks;
|
||||
FromMarks.Load(FileName);
|
||||
if (cMark *First = FromMarks.First())
|
||||
Recording.SetStartTime(Recording.start + (int(First->position / Recording.FramesPerSecond() + 30) / 60) * 60);
|
||||
Recording.SetStartTime(Recording.Start() + (int(First->Position() / Recording.FramesPerSecond() + 30) / 60) * 60);
|
||||
|
||||
const char *evn = Recording.PrefixFileName('%');
|
||||
if (evn && RemoveVideoFile(evn) && MakeDirs(evn, true)) {
|
||||
|
||||
Reference in New Issue
Block a user