Skip to content

Commit

Permalink
squash: fix build after WaitPresentTime
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Apr 4, 2016
1 parent cd70458 commit 2e022c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions xbmc/cores/omxplayer/OMXPlayerVideo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,10 @@ void OMXPlayerVideo::Process()
double pts = pPacket->pts;

if (dts != DVD_NOPTS_VALUE)
dts += m_iVideoDelay - DVD_SEC_TO_TIME(m_renderManager.GetDisplayLatency());
dts += m_iVideoDelay;

if (pts != DVD_NOPTS_VALUE)
pts += m_iVideoDelay - DVD_SEC_TO_TIME(m_renderManager.GetDisplayLatency());
pts += m_iVideoDelay;

m_omxVideo.Decode(pPacket->pData, pPacket->iSize, dts, m_hints.ptsinvalid ? DVD_NOPTS_VALUE : pts, settings_changed);

Expand Down
3 changes: 3 additions & 0 deletions xbmc/rendering/gles/RenderSystemGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
#include "utils/TimeUtils.h"
#include "utils/SystemInfo.h"
#include "utils/MathUtils.h"
#ifdef TARGET_POSIX
#include "XTimeUtils.h"
#endif

static const char* ShaderNames[SM_ESHADERCOUNT] =
{"guishader_frag_default.glsl",
Expand Down
6 changes: 0 additions & 6 deletions xbmc/windowing/egl/WinSystemEGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,19 +347,13 @@ bool CWinSystemEGL::DestroyWindow()
bool CWinSystemEGL::ResizeWindow(int newWidth, int newHeight, int newLeft, int newTop)
{
CRenderSystemGLES::ResetRenderSystem(newWidth, newHeight, true, 0);
int vsync_mode = CSettings::GetInstance().GetInt(CSettings::SETTING_VIDEOSCREEN_VSYNC);
if (vsync_mode != VSYNC_DRIVER)
SetVSyncImpl(m_iVSyncMode);
return true;
}

bool CWinSystemEGL::SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool blankOtherDisplays)
{
CreateNewWindow("", fullScreen, res, NULL);
CRenderSystemGLES::ResetRenderSystem(res.iWidth, res.iHeight, fullScreen, res.fRefreshRate);
int vsync_mode = CSettings::GetInstance().GetInt(CSettings::SETTING_VIDEOSCREEN_VSYNC);
if (vsync_mode != VSYNC_DRIVER)
SetVSyncImpl(m_iVSyncMode);
return true;
}

Expand Down

0 comments on commit 2e022c0

Please sign in to comment.