diff options
author | Jochen Dolze <vdr@dolze.de> | 2016-09-25 10:33:52 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2016-09-25 10:33:52 +0200 |
commit | 3724a697940a512399c7a549e71274408344c7d5 (patch) | |
tree | 6a31d1d4d0e846e3dd22c89db7ae3a8acc62818a /command/markad-standalone.cpp | |
parent | c3ca6bd8fc34f048499f8915c63c8eba710b89bd (diff) | |
download | vdr-plugin-markad-3724a697940a512399c7a549e71274408344c7d5.tar.gz vdr-plugin-markad-3724a697940a512399c7a549e71274408344c7d5.tar.bz2 |
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
Diffstat (limited to 'command/markad-standalone.cpp')
-rw-r--r-- | command/markad-standalone.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |