Permalink
Browse files

Correct copy/paste error in postroll commercial detection

Corrects an incorrect variable use that was missed when copying a
similar block of code added in 9f5ee51.

Fixes #10120
Refs #6889

Signed-off-by: Raymond Wagner <rwagner@mythtv.org>
  • Loading branch information...
1 parent becede2 commit 39c61832fb8e9e17fecf478426e67a223f6bd008 @tms13 tms13 committed with wagnerrp Oct 25, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythtv/programs/mythcommflag/PrePostRollFlagger.cpp
@@ -406,10 +406,11 @@ void PrePostRollFlagger::GetCommercialBreakList(frm_dir_map_t &marks)
end = closestAfterPre;
else
end = closestBeforePre;
- }else if(closestBeforePre)
+ }
+ else if(closestBeforePre)
end = closestBeforePre;
else if(closestAfterPre)
- end = closestAfterPre;
+ end = closestAfterPre;
else
end = preRoll;
@@ -431,7 +432,7 @@ void PrePostRollFlagger::GetCommercialBreakList(frm_dir_map_t &marks)
else if(closestBeforePost)
start = closestBeforePost;
else if(closestAfterPost)
- start = closestAfterPre;
+ start = closestAfterPost;
else if(postRoll)
start = myTotalFrames - postRoll;

0 comments on commit 39c6183

Please sign in to comment.