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
This commit is contained in:
parent
70139de6a2
commit
73b4678d06
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user