summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorT.M.Speight <T.M.Speight.90@cantab.net>2011-10-25 15:35:21 (GMT)
committer Raymond Wagner <rwagner@mythtv.org>2011-10-25 15:35:21 (GMT)
commit39c61832fb8e9e17fecf478426e67a223f6bd008 (patch)
tree1a2c94d70a079fa4d47d6fdd8ee396d83e802919
parentbecede20371e7907e072df6b5e325cd0d154cdaf (diff)
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 9f5ee51db82. Fixes #10120 Refs #6889 Signed-off-by: Raymond Wagner <rwagner@mythtv.org>
-rw-r--r--mythtv/programs/mythcommflag/PrePostRollFlagger.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/mythtv/programs/mythcommflag/PrePostRollFlagger.cpp b/mythtv/programs/mythcommflag/PrePostRollFlagger.cpp
index 2f646ec..1eac900 100644
--- a/mythtv/programs/mythcommflag/PrePostRollFlagger.cpp
+++ b/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;