From e668da7064a6bbc83bbb2771233656ea6dee5f6f Mon Sep 17 00:00:00 2001 From: popcornmix Date: Sun, 19 Apr 2015 16:17:25 +0100 Subject: [mmalrenderer] Fix initialisation of m_format in init_vout This bug was introduced in last mmal fixes. Without the fix software decode fails. --- xbmc/cores/VideoRenderers/MMALRenderer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xbmc/cores/VideoRenderers/MMALRenderer.cpp b/xbmc/cores/VideoRenderers/MMALRenderer.cpp index 3329980ab7..8d1c3381f1 100644 --- a/xbmc/cores/VideoRenderers/MMALRenderer.cpp +++ b/xbmc/cores/VideoRenderers/MMALRenderer.cpp @@ -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; @@ -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; } -- cgit v1.2.3