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.
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 @@
     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()