return ret;
}
}
-
+//LCOV_EXCL_STOP
/* send stop preview message */
- _camera_msg_send(api, pc->cb_info, &ret, CAMERA_CB_TIMEOUT);
+ _camera_msg_send(api, NULL, pc->cb_info, &ret, CAMERA_CB_TIMEOUT);
- if (ret != CAMERA_ERROR_NONE &&
- current_state == CAMERA_STATE_PREVIEW) {
+ if (ret == CAMERA_ERROR_NONE) {
+ if (pc->cb_info->user_buffer_supported)
+ _camera_release_preview_buffer(camera);
+ } else if (current_state == CAMERA_STATE_PREVIEW) {
LOGW("restart evas rendering");
_camera_start_evas_rendering(camera);
}