Commit
… dvdclock time, this fixes a problem in CDVDPlayerVideo::OutputPicture() where two different clock samples were used to convert a pts into a presenttime, if the clock moves forward in between calls, so does the presenttime
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1041,10 +1041,10 @@ int CDVDPlayerVideo::OutputPicture(DVDVideoPicture* pPicture, double pts) | |
pts += m_iVideoDelay; | ||
|
||
// calculate the time we need to delay this picture before displaying | ||
double iSleepTime, iClockSleep, iFrameSleep, iCurrentClock, iFrameDuration; | ||
double iSleepTime, iClockSleep, iFrameSleep, iPlayingClock, iCurrentClock, iFrameDuration; | ||
|
||
iCurrentClock = m_pClock->GetAbsoluteClock(false); // snapshot current clock | ||
iClockSleep = pts - m_pClock->GetClock(false); //sleep calculated by pts to clock comparison | ||
iPlayingClock = m_pClock->GetClock(iCurrentClock, false); // snapshot current clock | ||
iClockSleep = pts - iPlayingClock; //sleep calculated by pts to clock comparison | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bobo1on1
Member
|
||
iFrameSleep = m_FlipTimeStamp - iCurrentClock; // sleep calculated by duration of frame | ||
iFrameDuration = pPicture->iDuration; | ||
|
||
|
So is this temporary? Are you planning to make into an offset and let render manager convert to clock sleep/wait? Would be handy to know so I don't waste time merging my code with a transitionary version.