From 73b4678d06bb1dc4770cd28e0dda6b315f7b0be4 Mon Sep 17 00:00:00 2001 From: "Arun Kumar K.R" Date: Wed, 28 Mar 2012 20:40:41 -0700 Subject: [PATCH] liboverlay: set correct flags for external display channel When external display is connected during video playback, the flags to overlay was not set properly. Pass the flags which comes from the hwc, by just changing the WAIT_FOR_VSYNC(external should not wait for vsync) (cherry picked from commit 857cfcba2d120d5da4916c7cb4fe119a08d1ce68) Change-Id: I13100bebd223780eb9c709f384f0e4644e8295dc --- liboverlay/overlayLib.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/liboverlay/overlayLib.cpp b/liboverlay/overlayLib.cpp index 8c49e8d..2d18d97 100755 --- a/liboverlay/overlayLib.cpp +++ b/liboverlay/overlayLib.cpp @@ -729,11 +729,12 @@ bool Overlay::setSource(const overlay_buffer_info& info, int orientation, if(isHDMIStateChange) { //start only HDMI channel noRot = true; - bool waitForVsync = true; + //DO NOT WAIT for VSYNC for external + flags &= ~WAIT_FOR_VSYNC; // External display connected, start corresponding channel // mExternalDisplay will hold the fbnum if(!startChannel(info, mExternalDisplay, noRot, false, mS3DFormat, - VG1_PIPE, waitForVsync, num_buffers)) { + VG1_PIPE, flags, num_buffers)) { LOGE("%s:failed to open channel %d", __func__, VG1_PIPE); return false; }