libvideorender: CB2 change log level environment [1/1]
PD#SWPL-142039
Problem:
change the environment of libvideorender
Solution:
change the environment of libvideorender
Verify:
ap222
Change-Id: I06100c5a591f74686db6d22ffcaecbff571ed63a
Signed-off-by: fei.deng <fei.deng@amlogic.com>
diff --git a/drm/drm_plugin.cpp b/drm/drm_plugin.cpp
index f2ebcaf..2f15d66 100644
--- a/drm/drm_plugin.cpp
+++ b/drm/drm_plugin.cpp
@@ -248,11 +248,11 @@
void *makePluginInstance(int id)
{
int category =Logger_init(id);
- char *env = getenv("VIDEO_RENDER_LOG_LEVEL");
+ char *env = getenv("VIDEO_RENDER_PLUGIN_LOG_LEVEL");
if (env) {
int level = atoi(env);
Logger_set_level(level);
- INFO(category,"VIDEO_RENDER_LOG_LEVEL=%d",level);
+ INFO(category,"VIDEO_RENDER_PLUGIN_LOG_LEVEL=%d",level);
}
DrmPlugin *drmPlugin = new DrmPlugin(category);
return static_cast<void *>(drmPlugin);