From e80ef6acf886a67fa9136fdc8312971cef91b534 Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期二, 24 九月 2019 16:41:55 +0800 Subject: [PATCH] 增加addCamera的返回值校验 --- csrc/wrapper.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/csrc/wrapper.cpp b/csrc/wrapper.cpp index d27aa75..3ad04cb 100644 --- a/csrc/wrapper.cpp +++ b/csrc/wrapper.cpp @@ -274,7 +274,8 @@ } uint8_t *pic = NULL; - + *w = *h = 0; + int tryTime = 0; while (tryTime++ < 100){ -- Gitblit v1.8.0