Permalink
Browse files

Merge pull request #4578 from davilla/fix-mediacodec

[droid] fixed stutter under MediaCodec. We need to wait a little longer before we think the frame is late
  • Loading branch information...
t-nelson committed Apr 18, 2014
2 parents 50cf2d9 + 11fb039 commit f952d1d99ef2fca9a94769050804a2bd75ae3ae6
Showing with 2 additions and 2 deletions.
  1. +2 −2 xbmc/cores/dvdplayer/DVDCodecs/Video/DVDVideoCodecAndroidMediaCodec.cpp
@@ -275,8 +275,8 @@ void CDVDMediaCodecInfo::UpdateTexImage()
// wait, then video playback gets jerky. To optomize this,
// we hook the SurfaceTexture OnFrameAvailable callback
// using CJNISurfaceTextureOnFrameAvailableListener and wait
- // on a CEvent to fire. 20ms seems to be a good max fallback.
- m_frameready->WaitMSec(20);
+ // on a CEvent to fire. 50ms seems to be a good max fallback.
+ m_frameready->WaitMSec(50);
m_surfacetexture->updateTexImage();
if (xbmc_jnienv()->ExceptionOccurred())

0 comments on commit f952d1d

Please sign in to comment.