From 93fddfd776cb831f387e0cde4908e8488c1163cb Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 23 Jun 2013 16:11:47 +0100 Subject: [PATCH] [rbp/omxplayer] Update pts on resync message This was remove in #2853 and is still required for avi streams with all frames having pts=DVD_NOPTS_VALUE --- xbmc/cores/omxplayer/OMXPlayerVideo.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xbmc/cores/omxplayer/OMXPlayerVideo.cpp b/xbmc/cores/omxplayer/OMXPlayerVideo.cpp index 42f067f..bb5c74e 100644 --- a/xbmc/cores/omxplayer/OMXPlayerVideo.cpp +++ b/xbmc/cores/omxplayer/OMXPlayerVideo.cpp @@ -337,6 +337,10 @@ void OMXPlayerVideo::Process() else if (pMsg->IsType(CDVDMsg::GENERAL_RESYNC)) { CDVDMsgGeneralResync* pMsgGeneralResync = (CDVDMsgGeneralResync*)pMsg; + + if(pMsgGeneralResync->m_timestamp != DVD_NOPTS_VALUE) + pts = pMsgGeneralResync->m_timestamp; + CLog::Log(LOGDEBUG, "COMXPlayerVideo - CDVDMsg::GENERAL_RESYNC(%f, %d)", pts, pMsgGeneralResync->m_clock); pMsgGeneralResync->Release(); continue; -- 2.7.4