fixed, memory oink. we kept adding to formats to m_formats for each video played...
authorS. Davilla <davilla@4pi.com>
Sat, 15 Feb 2014 06:46:37 +0000 (01:46 -0500)
committerS. Davilla <davilla@4pi.com>
Sat, 15 Feb 2014 06:46:49 +0000 (01:46 -0500)
xbmc/cores/VideoRenderers/LinuxRendererGL.cpp
xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
xbmc/cores/VideoRenderers/WinRenderer.cpp

index 0ecaecf..08a261a 100644 (file)
@@ -742,6 +742,7 @@ unsigned int CLinuxRendererGL::PreInit()
 
   m_iYV12RenderBuffer = 0;
 
+  m_formats.clear();
   m_formats.push_back(RENDER_FMT_YUV420P);
   GLint size;
   glTexImage2D(GL_PROXY_TEXTURE_2D, 0, GL_LUMINANCE16, NP2(1920), NP2(1080), 0, GL_LUMINANCE, GL_UNSIGNED_SHORT, NULL);
index 452a958..6704b83 100644 (file)
@@ -588,6 +588,7 @@ unsigned int CLinuxRendererGLES::PreInit()
   m_iYV12RenderBuffer = 0;
   m_NumYV12Buffers = 2;
 
+  m_formats.clear();
   m_formats.push_back(RENDER_FMT_YUV420P);
   m_formats.push_back(RENDER_FMT_NV12);
   m_formats.push_back(RENDER_FMT_BYPASS);
index cc8fa4c..6c16a97 100644 (file)
@@ -392,6 +392,7 @@ unsigned int CWinRenderer::PreInit()
 
   g_Windowing.Get3DDevice()->GetDeviceCaps(&m_deviceCaps);
 
+  m_formats.clear();
   m_formats.push_back(RENDER_FMT_YUV420P);
 
   m_iRequestedMethod = CSettings::Get().GetInt("videoplayer.rendermethod");