aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpopcornmix <popcornmix@gmail.com>2015-04-30 22:34:28 +0100
committerpopcornmix <popcornmix@gmail.com>2015-04-30 22:34:28 +0100
commit282bc13d6405175b937b3ae21b822440d079460b (patch)
treec9fb404bc5acd249fe283a0030b5d323a7ffbd46
parentb153f6c5e8537811900770193cb6148ffa136e70 (diff)
parente668da7064a6bbc83bbb2771233656ea6dee5f6f (diff)
Merge pull request #7021 from popcornmix/mmalformatinit
[mmalrenderer] Fix initialisation of m_format in init_vout
-rw-r--r--xbmc/cores/VideoRenderers/MMALRenderer.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}