Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
changed: don't allow framedrops if input queue is empty
Browse files Browse the repository at this point in the history
changed: reset output drop counters when we disallaw framedrops

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/branches/Dharma@33321 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
elupus committed Aug 29, 2010
1 parent b4648a0 commit cbe6dc0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
Expand Up @@ -458,8 +458,14 @@ void CDVDPlayerVideo::Process()
#ifdef PROFILE
bRequestDrop = false;
#else
if (m_iNrOfPicturesNotToSkip > 0) bRequestDrop = false;
if (m_speed < 0) bRequestDrop = false;
if (m_messageQueue.GetDataSize() == 0
|| m_iNrOfPicturesNotToSkip > 0
|| m_speed < 0)
{
bRequestDrop = false;
m_iDroppedRequest = 0;
m_iLateFrames = 0;
}
#endif

// if player want's us to drop this packet, do so nomatter what
Expand Down

0 comments on commit cbe6dc0

Please sign in to comment.