diff options
author | James Dong <jdong@google.com> | 2010-01-06 15:45:56 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2010-01-06 15:45:56 -0800 |
commit | ef5a44a849ef7f4ff49d61f995fd8affe57867f4 (patch) | |
tree | 4c42d38b6ba9a74a7ef76300f085d8b1af14aaa4 /libopencorehw | |
parent | 6239f8a9287b511c2a7e417979ca5299a15436bc (diff) | |
parent | b536cdc2f73d9cb7148068d1164b2ad91c6c88cf (diff) | |
download | omap3-ef5a44a849ef7f4ff49d61f995fd8affe57867f4.tar.gz |
am b536cdc2: For overlay based platform, holding more than one frames in the video MIO can sometimes starve the video decoder. Thus, we set the number of video frames hold in the video MIO to be 1.
Merge commit 'b536cdc2f73d9cb7148068d1164b2ad91c6c88cf'
* commit 'b536cdc2f73d9cb7148068d1164b2ad91c6c88cf':
For overlay based platform, holding more than one frames in the video MIO
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() |