Skip to content

Commit

Permalink
[mmalcodec] Avoid double rate deinterlace when not fullscreen or with…
Browse files Browse the repository at this point in the history
… OSD
  • Loading branch information
popcornmix committed Apr 18, 2015
1 parent 7a6a663 commit 96e585e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xbmc/cores/VideoRenderers/MMALRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "windowing/WindowingFactory.h"
#include "cores/dvdplayer/DVDCodecs/Video/MMALCodec.h"
#include "xbmc/Application.h"
#include "guilib/GUIWindowManager.h"

#define CLASSNAME "CMMALRenderer"

Expand Down Expand Up @@ -551,7 +552,10 @@ bool CMMALRenderer::Supports(ESCALINGMETHOD method)

EINTERLACEMETHOD CMMALRenderer::AutoInterlaceMethod()
{
return VS_INTERLACEMETHOD_MMAL_ADVANCED;
if (!g_graphicsContext.IsFullScreenVideo() || g_windowManager.HasDialogOnScreen())
return VS_INTERLACEMETHOD_MMAL_ADVANCED_HALF;
else
return VS_INTERLACEMETHOD_MMAL_ADVANCED;
}

void CMMALRenderer::SetVideoRect(const CRect& InSrcRect, const CRect& InDestRect)
Expand Down

0 comments on commit 96e585e

Please sign in to comment.