summaryrefslogtreecommitdiff
path: root/command/video.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2010-05-15 21:37:48 +0200
committerJochen Dolze <vdr@dolze.de>2010-05-15 21:37:48 +0200
commit9aa6949e5f98e580f91320bb7255f985b5bd6103 (patch)
treef27c7c6f06d662f755a2f04066f0c2844199c46d /command/video.cpp
parent45a400d45adb2314952eb23dd3a7feb6c4b9526c (diff)
downloadvdr-plugin-markad-9aa6949e5f98e580f91320bb7255f985b5bd6103.tar.gz
vdr-plugin-markad-9aa6949e5f98e580f91320bb7255f985b5bd6103.tar.bz2
Fixed various things
Diffstat (limited to 'command/video.cpp')
-rw-r--r--command/video.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/command/video.cpp b/command/video.cpp
index 5eae436..90a9c53 100644
--- a/command/video.cpp
+++ b/command/video.cpp
@@ -472,7 +472,8 @@ int cMarkAdBlackBordersHoriz::Process(int LastIFrame, int *BorderIFrame)
}
else
{
-#define MINSECS 420
+#define MINSECS 90
+//420
switch (borderstatus)
{
case UNINITIALIZED:
@@ -516,6 +517,7 @@ int cMarkAdBlackBordersHoriz::Process(int LastIFrame, int *BorderIFrame)
else
{
borderiframe=-1;
+ borderstatus=NOBORDER;
}
}
return 0;
@@ -623,7 +625,7 @@ MarkAdMark *cMarkAdVideo::Process(int LastIFrame)
if ((hret>0) && (borderiframe))
{
char *buf=NULL;
- if (asprintf(&buf,"detected start of horiz. borders (%i)",borderiframe)!=-1)
+ if (asprintf(&buf,"detected start of horiz. borders (%i [%i])",borderiframe,LastIFrame)!=-1)
{
AddMark(MT_BORDERSTART,borderiframe,buf);
free(buf);
@@ -633,7 +635,7 @@ MarkAdMark *cMarkAdVideo::Process(int LastIFrame)
if ((hret<0) && (borderiframe))
{
char *buf=NULL;
- if (asprintf(&buf,"detected stop of horiz. borders (%i)",borderiframe)!=-1)
+ if (asprintf(&buf,"detected stop of horiz. borders (%i [%i])",borderiframe,LastIFrame)!=-1)
{
AddMark(MT_BORDERSTOP,borderiframe,buf);
free(buf);