Skip to content

Commit

Permalink
FIX: [mediacodec] make sure the output buffer is released from the Su…
Browse files Browse the repository at this point in the history
…rfaceView queue
  • Loading branch information
koying committed Apr 15, 2014
1 parent 3962cec commit c97add3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion xbmc/cores/VideoRenderers/LinuxRendererGLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -886,7 +886,13 @@ void CLinuxRendererGLES::ReleaseBuffer(int idx)
#if defined(TARGET_ANDROID)
if ( m_renderMethod & RENDER_MEDIACODEC )
{
SAFE_RELEASE(buf.mediacodec);
if (buf.mediacodec)
{
// The media buffer has been queued to the SurfaceView but we didn't render it
// We have to do to the updateTexImage or it will get stuck
buf.mediacodec->UpdateTexImage();
SAFE_RELEASE(buf.mediacodec);
}
}
#endif
}
Expand Down

0 comments on commit c97add3

Please sign in to comment.