summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-01-06 11:19:51 -0800
committerJames Dong <jdong@google.com>2010-01-06 13:20:57 -0800
commitb536cdc2f73d9cb7148068d1164b2ad91c6c88cf (patch)
treeb3db00adab2a9a61fc29a807337d426a0e6e72a2
parent63d3d5ec71326966a2b1ccb956721a4f79a4bca6 (diff)
downloadomap3-b536cdc2f73d9cb7148068d1164b2ad91c6c88cf.tar.gz
can sometimes starve the video decoder. Thus, we set the number of video frames hold in the video MIO to be 1.
-rw-r--r--libopencorehw/android_surface_output_omap34xx.cpp5
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()