Merge pull request #2908 from popcornmix/update_pts_resync
authorhuceke <ebsi4711@gmail.com>
Tue, 25 Jun 2013 06:59:15 +0000 (23:59 -0700)
committerhuceke <ebsi4711@gmail.com>
Tue, 25 Jun 2013 06:59:15 +0000 (23:59 -0700)
[rbp/omxplayer] Update pts on resync message

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;