diff options
Diffstat (limited to 'command/video.cpp')
-rw-r--r-- | command/video.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/command/video.cpp b/command/video.cpp index 7d09dd2..d0de34a 100644 --- a/command/video.cpp +++ b/command/video.cpp @@ -406,7 +406,11 @@ int cMarkAdLogo::Detect(int framenumber, int *logoframenumber) int cMarkAdLogo::Process(int FrameNumber, int *LogoFrameNumber) { if (!macontext) return LOGO_ERROR; - if (!macontext->Video.Data.Valid) return LOGO_ERROR; + if (!macontext->Video.Data.Valid) + { + area.status=LOGO_UNINITIALIZED; + return LOGO_ERROR; + } if (!macontext->Video.Info.Width) return LOGO_ERROR; if (!macontext->Video.Info.Height) return LOGO_ERROR; if (!macontext->Config->logoDirectory[0]) return LOGO_ERROR; @@ -862,6 +866,10 @@ MarkAdMarks *cMarkAdVideo::Process(int FrameNumber, int FrameNumberNext) } } } + else + { + logo->SetStatusUninitialized(); + } int hborderframenumber; int hret=hborder->Process(FrameNumber,&hborderframenumber); |