Skip to content
This repository has been archived by the owner on Dec 24, 2024. It is now read-only.

Commit

Permalink
FIX: [stagefright] 60min stutter and cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Nov 16, 2013
1 parent f1a7629 commit 91e2b1b
Show file tree
Hide file tree
Showing 6 changed files with 112 additions and 125 deletions.
6 changes: 5 additions & 1 deletion xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1984,11 +1984,15 @@ void CLinuxRendererGLES::UploadEGLIMGTexture(int index)
void CLinuxRendererGLES::DeleteEGLIMGTexture(int index)
{
#ifdef HAVE_LIBSTAGEFRIGHT
YUVPLANE &plane = m_buffers[index].fields[0][0];
YUVBUFFER &buf = m_buffers[index];
YUVPLANE &plane = buf.fields[0][0];

if(plane.id && glIsTexture(plane.id))
glDeleteTextures(1, &plane.id);
plane.id = 0;

buf.stf = NULL;
buf.eglimg = EGL_NO_IMAGE_KHR;
#endif
}
bool CLinuxRendererGLES::CreateEGLIMGTexture(int index)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void CDVDVideoCodecStageFright::Dispose()
}
if (m_stf_decoder)
{
m_stf_decoder->Close();
m_stf_decoder->Dispose();
delete m_stf_decoder;
m_stf_decoder = NULL;
}
Expand Down
Loading

0 comments on commit 91e2b1b

Please sign in to comment.