Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vdpau: player - undo skip processing for now, it might eat up all fra…

…mes when being very late
  • Loading branch information...
commit 4d5930f59fe4c039973b9071c27ab03db7e057ab 1 parent c2eb335
Rainer Hochecker authored
11 xbmc/cores/dvdplayer/DVDPlayerVideo.cpp
View
@@ -492,7 +492,7 @@ void CDVDPlayerVideo::Process()
bRequestDrop = false;
iDropDirective = CalcDropRequirement(pts);
- if (iDropDirective & EOS_LATE)
+ if (iDropDirective & EOS_VERYLATE)
{
if (m_bAllowDrop)
{
@@ -501,10 +501,8 @@ void CDVDPlayerVideo::Process()
}
}
int codecControl = 0;
- if (iDropDirective & (EOS_VERYLATE | EOS_BUFFER_LEVEL))
+ if (iDropDirective & EOS_BUFFER_LEVEL)
{
- if (iDropDirective & EOS_VERYLATE)
- codecControl |= DVP_FLAG_SKIP_PROC;
if (iDropDirective & EOS_BUFFER_LEVEL)
codecControl |= DVP_FLAG_DRAIN;
}
@@ -1729,10 +1727,7 @@ int CDVDPlayerVideo::CalcDropRequirement(double pts)
// is frame allowed to skip
if (m_iNrOfPicturesNotToSkip <= 0)
{
- result |= EOS_LATE;
-
- if (iLateness < -3/m_fFrameRate)
- result |= EOS_VERYLATE;
+ result |= EOS_VERYLATE;
// drop in output
if (m_droppingStats.m_dropRequests > 7 && g_graphicsContext.IsFullScreenVideo())
3  xbmc/cores/dvdplayer/DVDPlayerVideo.h
View
@@ -131,8 +131,7 @@ class CDVDPlayerVideo : public CThread
#define EOS_ABORT 1
#define EOS_DROPPED 2
#define EOS_VERYLATE 4
-#define EOS_LATE 8
-#define EOS_BUFFER_LEVEL 16
+#define EOS_BUFFER_LEVEL 8
void AutoCrop(DVDVideoPicture* pPicture);
void AutoCrop(DVDVideoPicture *pPicture, RECT &crop);
Please sign in to comment.
Something went wrong with that request. Please try again.