Skip to content

Commit

Permalink
omxvideo: Remove call to AutoInterlaceMethod. Treat auto as advanced
Browse files Browse the repository at this point in the history
  • Loading branch information
popcornmix committed Jul 2, 2016
1 parent b5f1467 commit a05eac7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Expand Up @@ -632,7 +632,7 @@ bool CMMALRenderer::Supports(ESCALINGMETHOD method)

EINTERLACEMETHOD CMMALRenderer::AutoInterlaceMethod()
{
return m_sourceWidth * m_sourceHeight <= 576 * 720 ? VS_INTERLACEMETHOD_MMAL_ADVANCED : VS_INTERLACEMETHOD_MMAL_BOB;
return VS_INTERLACEMETHOD_MMAL_ADVANCED;
}

void CMMALRenderer::SetVideoRect(const CRect& InSrcRect, const CRect& InDestRect)
Expand Down
5 changes: 4 additions & 1 deletion xbmc/cores/omxplayer/OMXVideo.cpp
Expand Up @@ -242,7 +242,10 @@ bool COMXVideo::PortSettingsChanged(ResolutionUpdateInfo &resinfo)

if(m_deinterlace)
{
EINTERLACEMETHOD interlace_method = m_renderManager.AutoInterlaceMethod(CMediaSettings::GetInstance().GetCurrentVideoSettings().m_InterlaceMethod);
EINTERLACEMETHOD interlace_method = CMediaSettings::GetInstance().GetCurrentVideoSettings().m_InterlaceMethod;
if (interlace_method == VS_INTERLACEMETHOD_AUTO)
interlace_method = VS_INTERLACEMETHOD_MMAL_ADVANCED;

bool advanced_deinterlace = interlace_method == VS_INTERLACEMETHOD_MMAL_ADVANCED || interlace_method == VS_INTERLACEMETHOD_MMAL_ADVANCED_HALF;
bool half_framerate = interlace_method == VS_INTERLACEMETHOD_MMAL_ADVANCED_HALF || interlace_method == VS_INTERLACEMETHOD_MMAL_BOB_HALF;

Expand Down

0 comments on commit a05eac7

Please sign in to comment.