diff options
author | James Dong <jdong@google.com> | 2010-01-06 11:19:51 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-01-06 13:20:57 -0800 |
commit | b536cdc2f73d9cb7148068d1164b2ad91c6c88cf (patch) | |
tree | b3db00adab2a9a61fc29a807337d426a0e6e72a2 /libopencorehw | |
parent | 63d3d5ec71326966a2b1ccb956721a4f79a4bca6 (diff) | |
download | omap3-b536cdc2f73d9cb7148068d1164b2ad91c6c88cf.tar.gz |
For overlay based platform, holding more than one frames in the video MIOandroid-2.1_r2.1sandroid-2.1_r2.1p2android-2.1_r2.1pandroid-2.1_r2eclair-sholes-release2eclair-releaseeclair-passion-release
can sometimes starve the video decoder. Thus, we set the number of video
frames hold in the video MIO to be 1.
Diffstat (limited to 'libopencorehw')
-rw-r--r-- | libopencorehw/android_surface_output_omap34xx.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libopencorehw/android_surface_output_omap34xx.cpp b/libopencorehw/android_surface_output_omap34xx.cpp index cd3c014..d476df5 100644 --- a/libopencorehw/android_surface_output_omap34xx.cpp +++ b/libopencorehw/android_surface_output_omap34xx.cpp @@ -71,6 +71,11 @@ OSCL_EXPORT_REF AndroidSurfaceOutputOmap34xx::AndroidSurfaceOutputOmap34xx() : mIsFirstFrame = true; mbufferAlloc.buffer_address = NULL; mConvert = false; + + // Holding more than one video frames can sometimes starve the + // overlay-based decoder video sink; thus we overwrite the + // default value in the base class. + mNumberOfFramesToHold = 1; } OSCL_EXPORT_REF AndroidSurfaceOutputOmap34xx::~AndroidSurfaceOutputOmap34xx() |