Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 39c61832fb8e9e17fecf478426e67a223f6bd008 1 parent becede2
T.M.Speight authored wagnerrp committed
Showing with 4 additions and 3 deletions.
  1. +4 −3 mythtv/programs/mythcommflag/PrePostRollFlagger.cpp
View
7 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;
Please sign in to comment.
Something went wrong with that request. Please try again.