mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
Fix uninitialized members, fix log output typo
This commit is contained in:
parent
e12a04ac7e
commit
0c5faa6d24
@ -314,7 +314,9 @@ public:
|
|||||||
cameraId(0),
|
cameraId(0),
|
||||||
cameraCallback(callback),
|
cameraCallback(callback),
|
||||||
userData(_userData),
|
userData(_userData),
|
||||||
emptyCameraCallbackReported(0)
|
emptyCameraCallbackReported(0),
|
||||||
|
width(),
|
||||||
|
height()
|
||||||
{
|
{
|
||||||
LOGD("Instantiated new CameraHandler (%p, %p)", callback, _userData);
|
LOGD("Instantiated new CameraHandler (%p, %p)", callback, _userData);
|
||||||
void* params_buffer = operator new(sizeof(CameraParameters) + MAGIC_TAIL);
|
void* params_buffer = operator new(sizeof(CameraParameters) + MAGIC_TAIL);
|
||||||
@ -1122,7 +1124,7 @@ void CameraHandler::applyProperties(CameraHandler** ppcameraHandler)
|
|||||||
if (handler == NULL) {
|
if (handler == NULL) {
|
||||||
LOGE("ERROR in applyProperties --- cannot reinit camera");
|
LOGE("ERROR in applyProperties --- cannot reinit camera");
|
||||||
handler=initCameraConnect(cameraCallback, cameraId, userData, NULL);
|
handler=initCameraConnect(cameraCallback, cameraId, userData, NULL);
|
||||||
LOGD("CameraHandler::applyProperties(): repeate initCameraConnect after ERROR, handler=0x%x", (int)handler);
|
LOGD("CameraHandler::applyProperties(): repeat initCameraConnect after ERROR, handler=0x%x", (int)handler);
|
||||||
if (handler == NULL) {
|
if (handler == NULL) {
|
||||||
LOGE("ERROR in applyProperties --- cannot reinit camera AGAIN --- cannot do anything else");
|
LOGE("ERROR in applyProperties --- cannot reinit camera AGAIN --- cannot do anything else");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user