aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpopcornmix <popcornmix@gmail.com>2013-11-25 14:52:21 +0000
committerpopcornmix <popcornmix@gmail.com>2014-02-04 17:37:35 +0000
commit290714cd78d535f72e2cc0eaf8602fac1746fa8a (patch)
tree30e57b013218fc36635a556e1a77968f4c4653f3
parent65ad3ae9092c84fc608dd9905a4e222138b4b943 (diff)
[omxplayer] Use display time for EDL cut start time
There are reports that EDL commercial break skipping occurs 5-10 seconds too early. This is because the skip occurs when a timestamp is received at PlayerVideo/PlayerAudio, but it may still be a number of seconds before that frame is presented by the GPU. Instead use the display time (GetTime) to determine start of cut time
-rw-r--r--xbmc/cores/omxplayer/OMXPlayer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/omxplayer/OMXPlayer.cpp b/xbmc/cores/omxplayer/OMXPlayer.cpp
index 244024e60b..b1a6345cbf 100644
--- a/xbmc/cores/omxplayer/OMXPlayer.cpp
+++ b/xbmc/cores/omxplayer/OMXPlayer.cpp
@@ -2161,7 +2161,7 @@ void COMXPlayer::CheckAutoSceneSkip()
|| m_CurrentVideo.dts == DVD_NOPTS_VALUE)
return;
- const int64_t clock = DVD_TIME_TO_MSEC(min(m_CurrentAudio.dts, m_CurrentVideo.dts) + m_offset_pts);
+ const int64_t clock = GetTime();
CEdl::Cut cut;
if(!m_Edl.InCut(clock, &cut))