Skip to content

Commit

Permalink
hack: limit sleeptime to avoid stall on video startup
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Sep 19, 2015
1 parent 307713f commit afbc165
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xbmc/cores/VideoPlayer/VideoPlayerVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -984,6 +984,8 @@ int CVideoPlayerVideo::OutputPicture(const DVDVideoPicture* src, double pts)
else
iSleepTime = iClockSleep;

iSleepTime = std::min(iSleepTime, DVD_MSEC_TO_TIME(500));

if (m_speed < 0)
{
double sleepTime, renderPts;
Expand Down

0 comments on commit afbc165

Please sign in to comment.