From 3724a697940a512399c7a549e71274408344c7d5 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Sun, 25 Sep 2016 10:33:52 +0200 Subject: Added patch from Bug #2374 - Thanks to Markus and koen Added patch from Bug #2403 - Thanks to Markus Removed EinsPlus logo, logo never disapears on this channel --- command/markad-standalone.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'command/markad-standalone.cpp') diff --git a/command/markad-standalone.cpp b/command/markad-standalone.cpp index 1356ab7..c137d30 100644 --- a/command/markad-standalone.cpp +++ b/command/markad-standalone.cpp @@ -1014,8 +1014,10 @@ void cMarkAdStandalone::Process2ndPass() off_t offset; int number,frame,iframes; int frange=macontext.Video.Info.FramesPerSecond*120; // 40s + 80s + int frange_begin=p1->position-frange; // 120 seconds before first mark + if (frange_begin<0) frange_begin=0; // but not before beginning of broadcast - if (marks.ReadIndex(directory,isTS,p1->position-frange,frange,&number,&offset,&frame,&iframes)) + if (marks.ReadIndex(directory,isTS,p1->position-frange,frange_begin,&number,&offset,&frame,&iframes)) { if (!ProcessFile2ndPass(&p1,NULL,number,offset,frame,iframes)) break; -- cgit v1.2.3