summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-03-23 15:55:03 +0100
committerJochen Dolze <vdr@dolze.de>2010-03-23 15:55:03 +0100
commit9ec196d2f1245efbce3684f21027ea39b2501027 (patch)
tree3cc4e10ae43a96bae87035887ad45f5d10744cd5
parentfc4a9599ab36029c94949cf6faeb21d63d79ed51 (diff)
downloadvdr-plugin-markad-9ec196d2f1245efbce3684f21027ea39b2501027.tar.gz
vdr-plugin-markad-9ec196d2f1245efbce3684f21027ea39b2501027.tar.bz2
Fixed wrong logging output, added some more useful information
-rw-r--r--markad-standalone.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/markad-standalone.cpp b/markad-standalone.cpp
index 3bd71bb..98d9091 100644
--- a/markad-standalone.cpp
+++ b/markad-standalone.cpp
@@ -770,14 +770,6 @@ cMarkAdStandalone::cMarkAdStandalone(const char *Directory, bool BackupMarks, in
bBackupMarks=BackupMarks;
- if (LogoExtraction!=-1)
- {
- // just to be sure extraction works
- bDecodeVideo=true;
- bIgnoreAudioInfo=true;
- bIgnoreVideoInfo=true;
- }
-
macontext.General.DPid.Type=MARKAD_PIDTYPE_AUDIO_AC3;
macontext.General.APid.Type=MARKAD_PIDTYPE_AUDIO_MP2;
@@ -801,6 +793,14 @@ cMarkAdStandalone::cMarkAdStandalone(const char *Directory, bool BackupMarks, in
isyslog("video info usage disabled by user");
}
+ if (LogoExtraction!=-1)
+ {
+ // just to be sure extraction works
+ bDecodeVideo=true;
+ bIgnoreAudioInfo=true;
+ bIgnoreVideoInfo=true;
+ }
+
if (!CheckTS(Directory))
{
video_demux=NULL;
@@ -862,7 +862,11 @@ cMarkAdStandalone::cMarkAdStandalone(const char *Directory, bool BackupMarks, in
if (!LoadInfo(Directory))
{
- if (bDecodeVideo) esyslog("failed loading info - logo detection disabled");
+ if (bDecodeVideo)
+ {
+ esyslog("failed loading info - logo %s disabled",
+ (LogoExtraction!=-1) ? "extraction" : "detection");
+ }
}
if (MarkFileName[0]) marks.SetFileName(MarkFileName);