Commit 9d7300f0 authored by Andrey Kamaev's avatar Andrey Kamaev Committed by OpenCV Buildbot

Merge pull request #465 from asmorkalov:android_camera_connect

parents c61d7088 283b26e2
......@@ -198,7 +198,7 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
*/
/* First step - initialize camera connection */
Log.d(TAG, "Connecting to camera");
if (!initializeCamera(getWidth(), getHeight()))
if (!initializeCamera(width, height))
return false;
/* now we can start update thread */
......
......@@ -37,7 +37,7 @@ public class NativeCameraView extends CameraBridgeViewBase {
* 2. We need to start thread which will be getting frames
*/
/* First step - initialize camera connection */
if (!initializeCamera(getWidth(), getHeight()))
if (!initializeCamera(width, height))
return false;
/* now we can start update thread */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment