Skip to content

Commit

Permalink
[rbp/omxplayer] fixed subtitle display time. fixes #13861
Browse files Browse the repository at this point in the history
  • Loading branch information
huceke committed Jan 3, 2013
1 parent f92ecf8 commit c47e925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion xbmc/cores/omxplayer/OMXPlayerVideo.cpp
Expand Up @@ -443,7 +443,7 @@ void OMXPlayerVideo::Output(int iGroupId, double pts, bool bDropPacket)
m_dropbase = 0.0f;
#endif

double pts_media = m_av_clock->OMXMediaTime();
double pts_media = m_av_clock->OMXMediaTime(false, false);
ProcessOverlays(iGroupId, pts_media);

while(!CThread::m_bStop && m_av_clock->GetAbsoluteClock(false) < (iCurrentClock + iSleepTime + DVD_MSEC_TO_TIME(500)) )
Expand Down
5 changes: 1 addition & 4 deletions xbmc/linux/OMXClock.cpp
Expand Up @@ -704,9 +704,6 @@ double OMXClock::OMXWallTime(bool lock /* = true */)

pts = FromOMXTime(timeStamp.nTimestamp);

if(pts != 0.0f)
pts += (OMX_PRE_ROLL * 1000);

if(lock)
UnLock();

Expand Down Expand Up @@ -739,7 +736,7 @@ double OMXClock::OMXMediaTime(bool fixPreroll /* true */ , bool lock /* = true *

pts = FromOMXTime(timeStamp.nTimestamp);

if(pts != 0.0f && fixPreroll)
if(fixPreroll)
pts += (OMX_PRE_ROLL * 1000);

if(lock)
Expand Down

0 comments on commit c47e925

Please sign in to comment.