[rbp/omxplayer] Update pts on resync message
authorpopcornmix <popcornmix@gmail.com>
Sun, 23 Jun 2013 15:11:47 +0000 (16:11 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 24 Jun 2013 13:17:41 +0000 (14:17 +0100)
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

index 42f067f..bb5c74e 100644 (file)
@@ -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;