summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Ross <kevin@familyross.net>2011-10-09 16:03:41 (GMT)
committer Michael T. Dean <mdean@mythtv.org>2011-10-09 16:12:00 (GMT)
commitcb01f3079a0eadf430178fefd5c2341235152fd1 (patch)
tree9dcda1d9d9f219326637a1fcfcd3b92252703c09
parenta24ecbf706b2989a5a6cb583d5efad50719d5454 (diff)
Fix MythPlayer::GetRawVideoFrame() for mythcommflag.
Fix MythPlayer::GetRawVideoFrame() to return the correct frame number. This change fixes mythcommflag so that it will return consistent results across multiple runs. It should also improve commercial detection accuracy, as the frame numbers identified by the different methods will actually be precise--allowing for better comparing the results of the different methods. Although this commit has my name for the signed-off line, I didn't do much. Thanks to Kevin Ross for the debugging and the patch, to Taylor Ralph and Mark Kendall for actually reviewing the patch, and to all the users and devs who ran with the patch to test it (and saw greatly-improved commercial flagging results). Fixes #9997. Signed-off-by: Michael T. Dean <mdean@mythtv.org> (cherry picked from commit f135d5d5ed59291c54922dcb0ad079cf36139a28)
-rw-r--r--mythtv/libs/libmythtv/mythplayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mythtv/libs/libmythtv/mythplayer.cpp b/mythtv/libs/libmythtv/mythplayer.cpp
index ee42098..8c54140 100644
--- a/mythtv/libs/libmythtv/mythplayer.cpp
+++ b/mythtv/libs/libmythtv/mythplayer.cpp
@@ -4089,7 +4089,8 @@ VideoFrame* MythPlayer::GetRawVideoFrame(long long frameNumber)
VERBOSE(VB_PLAYBACK, LOC + QString("Waited 100ms for video frame"));
}
- return videoOutput->GetLastDecodedFrame();
+ videoOutput->StartDisplayingFrame();
+ return videoOutput->GetLastShownFrame();
}
QString MythPlayer::GetEncodingType(void) const