osd: return if vinfo is null

PD#165381: osd: return if vinfo is null

Change-Id: I21b7de315859268f51b185a77ad221ded5a2d755
Signed-off-by: pengcheng chen <pengcheng.chen@amlogic.com>
This commit is contained in:
pengcheng chen
2018-05-19 22:19:24 +08:00
committed by Yixun Lan
parent 1f34ee9b34
commit d18a71e502

View File

@@ -1648,8 +1648,10 @@ int osd_notify_callback(struct notifier_block *block, unsigned long cmd,
}
osd_log_info("current vmode=%s, cmd: 0x%lx\n",
vinfo->name, cmd);
if (!strcmp(vinfo->name, "invalid"))
if ((!strcmp(vinfo->name, "invalid")) ||
(!strcmp(vinfo->name, "null")))
return -1;
switch (cmd) {
case VOUT_EVENT_MODE_CHANGE:
set_osd_logo_freescaler();