summaryrefslogtreecommitdiff
path: root/command/markad-standalone.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2015-09-26 19:20:24 +0200
committerJochen Dolze <vdr@dolze.de>2015-09-26 19:20:24 +0200
commit53454360c279844d0783b70cde023fecfc8ea69a (patch)
tree09cb26e2f6615d0d687c338d3ffef9e7b16fc1ca /command/markad-standalone.cpp
parent5e9b092b54111b9d7e5889b76c30b9de7a1f6088 (diff)
downloadvdr-plugin-markad-53454360c279844d0783b70cde023fecfc8ea69a.tar.gz
vdr-plugin-markad-53454360c279844d0783b70cde023fecfc8ea69a.tar.bz2
Added missing files from last commit ;)
Diffstat (limited to 'command/markad-standalone.cpp')
-rw-r--r--command/markad-standalone.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/command/markad-standalone.cpp b/command/markad-standalone.cpp
index 4ca71cd..23a1ae3 100644
--- a/command/markad-standalone.cpp
+++ b/command/markad-standalone.cpp
@@ -239,7 +239,8 @@ void cMarkAdStandalone::CalculateCheckPositions(int startframe)
iStart=-startframe;
iStop=-(startframe+len_in_frames);
iStopA=-(startframe+len_in_framesA);
- chkSTART=-iStart+delta;
+ chkSTART=-iStart+(1.1*delta);
+ dsyslog("chkSTART set to %i",chkSTART);
chkSTOP=-iStop+(3*delta);
}
@@ -321,7 +322,7 @@ void cMarkAdStandalone::CheckStart()
macontext.Info.Channels=macontext.Audio.Info.Channels;
if (macontext.Config->DecodeAudio) {
- if (macontext.Info.Channels==6)
+ if ((macontext.Info.Channels==6) && (macontext.Audio.Options.IgnoreDolbyDetection==false))
{
isyslog("DolbyDigital5.1 audio detected. logo/border/aspect detection disabled");
bDecodeVideo=false;
@@ -336,7 +337,7 @@ void cMarkAdStandalone::CheckStart()
{
if (macontext.Info.DPid.Num)
{
- if (macontext.Info.Channels)
+ if ((macontext.Info.Channels) && (macontext.Audio.Options.IgnoreDolbyDetection==false))
isyslog("broadcast with %i audio channels, disabling AC3 decoding",macontext.Info.Channels);
macontext.Info.DPid.Num=0;
demux->DisableDPid();
@@ -371,6 +372,11 @@ void cMarkAdStandalone::CheckStart()
(macontext.Video.Info.AspectRatio.Den==3))
{
bDecodeVideo=false;
+ if (macontext.Info.Channels==6) {
+ macontext.Video.Options.IgnoreAspectRatio=false;
+ macontext.Info.DPid.Num=0;
+ demux->DisableDPid();
+ }
macontext.Video.Options.IgnoreLogoDetection=true;
marks.Del(MT_CHANNELSTART);
marks.Del(MT_CHANNELSTOP);
@@ -647,7 +653,7 @@ void cMarkAdStandalone::CheckIndexGrowing()
if (time(NULL)>(startTime+(time_t) length))
{
// "old" recording
- dsyslog("assuming old recording, now>startTime+length");
+ tsyslog("assuming old recording, now>startTime+length");
return;
}
else
@@ -673,6 +679,7 @@ void cMarkAdStandalone::CheckIndexGrowing()
errno=0;
unsigned int ret=sleep(sleeptime); // now we sleep and hopefully the index will grow
if ((errno) && (ret)) {
+ if (abort) return;
esyslog("got errno %i while waiting for new data",errno);
if (errno!=EINTR) return;
}