From d057e5db1c9ca81d5f60b9cd8001f60dd155f145 Mon Sep 17 00:00:00 2001 From: Wei Shuai Date: Fri, 26 Jan 2018 21:54:30 +0800 Subject: tracker/wii: remove useless check --- tracker-pt/tracker-wii/wii_camera.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tracker-pt/tracker-wii/wii_camera.cpp') diff --git a/tracker-pt/tracker-wii/wii_camera.cpp b/tracker-pt/tracker-wii/wii_camera.cpp index 22d53fcf..75ce3950 100644 --- a/tracker-pt/tracker-wii/wii_camera.cpp +++ b/tracker-pt/tracker-wii/wii_camera.cpp @@ -78,11 +78,6 @@ WIICamera::result WIICamera::get_frame(pt_frame& frame_) pt_camera_open_status WIICamera::start(int idx, int fps, int res_x, int res_y) { m_pDev = std::make_unique(); - if (!m_pDev) - { - stop(); - return cam_open_error; - } m_pDev->ChangedCallback = on_state_change; m_pDev->CallbackTriggerFlags = (state_change_flags)(CONNECTED | EXTENSION_CHANGED | -- cgit v1.2.3