libvideorender: CB2 init crtc index value [1/1]
PD#SWPL-146042
Problem:
crtcIndex maybe get a random value if this
value can not get from weston
Solution:
init default value
Verify:
ap222
Change-Id: Idd7cebac9e7fa1fb64778efb8e44188ff2b5a207
Signed-off-by: fei.deng <fei.deng@amlogic.com>
diff --git a/weston/wayland_display.cpp b/weston/wayland_display.cpp
index 2b2831a..3f6afaa 100644
--- a/weston/wayland_display.cpp
+++ b/weston/wayland_display.cpp
@@ -645,6 +645,7 @@
mOutput[i].refreshRate = 0;
mOutput[i].isPrimary = false;
mOutput[i].name = 0;
+ mOutput[i].crtcIndex = 0;
}
}