From 290714cd78d535f72e2cc0eaf8602fac1746fa8a Mon Sep 17 00:00:00 2001 From: popcornmix Date: Mon, 25 Nov 2013 14:52:21 +0000 Subject: [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 --- xbmc/cores/omxplayer/OMXPlayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3