weston: modify auto frame rate env [1/1]
PD#SWPL-196363
Problem:
auto frame rate change is not working properly.
Solution:
modify auto frame rate env
Verify:
t5w
Change-Id: Id708fc7ac20773533f2e3028fe6f1be8c175a93f
Signed-off-by: limin.tian <limin.tian@amlogic.com>
diff --git a/aml-weston/aml-compositor.c b/aml-weston/aml-compositor.c
index 689a19f..ccd6f8f 100644
--- a/aml-weston/aml-compositor.c
+++ b/aml-weston/aml-compositor.c
@@ -1071,7 +1071,8 @@
static void weston_compositor_init_auto_frame_rate(struct weston_compositor *ec)
{
const char *env = getenv("WESTON_GL_AUTO_FRAME_MODE");
- if (env && strcmp(env, "1"))
+ weston_log("\n WESTON_GL_AUTO_FRAME_MODE:%s \n", env);
+ if (env && strcmp(env, "1") == 0)
ec->auto_frm_mode = true;
}