Skip to content
This repository
Browse code

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 authored

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  xbmc/cores/omxplayer/OMXPlayerVideo.cpp
4  xbmc/cores/omxplayer/OMXPlayerVideo.cpp
@@ -337,6 +337,10 @@ void OMXPlayerVideo::Process()
337 337
     else if (pMsg->IsType(CDVDMsg::GENERAL_RESYNC))
338 338
     {
339 339
       CDVDMsgGeneralResync* pMsgGeneralResync = (CDVDMsgGeneralResync*)pMsg;
  340
+
  341
+      if(pMsgGeneralResync->m_timestamp != DVD_NOPTS_VALUE)
  342
+        pts = pMsgGeneralResync->m_timestamp;
  343
+
340 344
       CLog::Log(LOGDEBUG, "COMXPlayerVideo - CDVDMsg::GENERAL_RESYNC(%f, %d)", pts, pMsgGeneralResync->m_clock);
341 345
       pMsgGeneralResync->Release();
342 346
       continue;

0 notes on commit a629a7e

Please sign in to comment.
Something went wrong with that request. Please try again.