Skip to content
This repository
Browse code

[rbp/omxplayer] fixed subtitle display time. fixes #13861

  • Loading branch information...
commit c47e925c8e044521a9321614882947f03e5754b0 1 parent f92ecf8
huceke authored January 03, 2013
2  xbmc/cores/omxplayer/OMXPlayerVideo.cpp
@@ -443,7 +443,7 @@ void OMXPlayerVideo::Output(int iGroupId, double pts, bool bDropPacket)
443 443
   m_dropbase = 0.0f;
444 444
 #endif
445 445
 
446  
-  double pts_media = m_av_clock->OMXMediaTime();
  446
+  double pts_media = m_av_clock->OMXMediaTime(false, false);
447 447
   ProcessOverlays(iGroupId, pts_media);
448 448
 
449 449
   while(!CThread::m_bStop && m_av_clock->GetAbsoluteClock(false) < (iCurrentClock + iSleepTime + DVD_MSEC_TO_TIME(500)) )
5  xbmc/linux/OMXClock.cpp
@@ -704,9 +704,6 @@ double OMXClock::OMXWallTime(bool lock /* = true */)
704 704
 
705 705
   pts = FromOMXTime(timeStamp.nTimestamp);
706 706
 
707  
-  if(pts != 0.0f)
708  
-    pts += (OMX_PRE_ROLL * 1000);
709  
-
710 707
   if(lock)
711 708
     UnLock();
712 709
   
@@ -739,7 +736,7 @@ double OMXClock::OMXMediaTime(bool fixPreroll /* true */ , bool lock /* = true *
739 736
 
740 737
   pts = FromOMXTime(timeStamp.nTimestamp);
741 738
 
742  
-  if(pts != 0.0f && fixPreroll)
  739
+  if(fixPreroll)
743 740
     pts += (OMX_PRE_ROLL * 1000);
744 741
 
745 742
   if(lock)

0 notes on commit c47e925

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