Skip to content

Commit

Permalink
fixup: Fix GLES and MMAL builds
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix authored and FernetMenta committed Sep 21, 2015
1 parent d4ee54f commit 8c482e6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,6 @@ bool CMMALRenderer::Configure(unsigned int width, unsigned int height, unsigned

// calculate the input frame aspect ratio
CalculateFrameAspectRatio(d_width, d_height);
ChooseBestResolution(fps);
m_destWidth = g_graphicsContext.GetResInfo(m_resolution).iWidth;
m_destHeight = g_graphicsContext.GetResInfo(m_resolution).iHeight;
SetViewMode(CMediaSettings::GetInstance().GetCurrentVideoSettings().m_ViewMode);
ManageDisplay();

Expand Down Expand Up @@ -536,10 +533,6 @@ void CMMALRenderer::PreInit()

m_iFlags = 0;

m_resolution = CDisplaySettings::GetInstance().GetCurrentResolution();
if ( m_resolution == RES_WINDOW )
m_resolution = RES_DESKTOP;

CLog::Log(LOGDEBUG, "%s::%s", CLASSNAME, __func__);

m_formats.clear();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ class CMMALRenderer : public CBaseRenderer
bool m_bConfigured;
bool m_bMMALConfigured;
unsigned int m_extended_format;
unsigned int m_destWidth;
unsigned int m_destHeight;
int m_neededBuffers;

CRect m_src_rect;
Expand Down
4 changes: 0 additions & 4 deletions xbmc/cores/VideoPlayer/VideoRenderers/LinuxRendererGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ bool CLinuxRendererGLES::Configure(unsigned int width, unsigned int height, unsi

// Calculate the input frame aspect ratio.
CalculateFrameAspectRatio(d_width, d_height);
ChooseBestResolution(fps);
SetViewMode(CMediaSettings::GetInstance().GetCurrentVideoSettings().m_ViewMode);
ManageDisplay();

Expand Down Expand Up @@ -538,9 +537,6 @@ void CLinuxRendererGLES::PreInit()
m_bConfigured = false;
m_bValidated = false;
UnInit();
m_resolution = CDisplaySettings::GetInstance().GetCurrentResolution();
if ( m_resolution == RES_WINDOW )
m_resolution = RES_DESKTOP;

m_iYV12RenderBuffer = 0;
m_NumYV12Buffers = 2;
Expand Down

0 comments on commit 8c482e6

Please sign in to comment.