Skip to content

Commit

Permalink
Merge pull request #7021 from popcornmix/mmalformatinit
Browse files Browse the repository at this point in the history
[mmalrenderer] Fix initialisation of m_format in init_vout
  • Loading branch information
popcornmix committed Apr 30, 2015
2 parents b153f6c + e668da7 commit 282bc13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xbmc/cores/VideoRenderers/MMALRenderer.cpp
Expand Up @@ -82,7 +82,7 @@ bool CMMALRenderer::init_vout(ERenderFormat format)
if (m_bConfigured)
return true;

m_format = RENDER_FMT_MMAL;
m_format = format;
if (m_format != RENDER_FMT_MMAL && m_format != RENDER_FMT_YUV420P)
return true;

Expand Down Expand Up @@ -480,6 +480,7 @@ void CMMALRenderer::UnInitMMAL()
m_video_stereo_mode = RENDER_STEREO_MODE_OFF;
m_display_stereo_mode = RENDER_STEREO_MODE_OFF;
m_StereoInvert = false;
m_format = RENDER_FMT_NONE;

m_bConfigured = false;
}
Expand Down

0 comments on commit 282bc13

Please sign in to comment.