Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2908 from popcornmix/update_pts_resync

[rbp/omxplayer] Update pts on resync message
  • Loading branch information...
commit a629a7eaf2ac6d5dd86289ac80b6577d07b03704 2 parents bf6c910 + 93fddfd
huceke huceke authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 xbmc/cores/omxplayer/OMXPlayerVideo.cpp
4 xbmc/cores/omxplayer/OMXPlayerVideo.cpp
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.