Issue in NativeCameraView and JavaCameraView fixed.

In previous version getWidth() and getHeight() values were used instead method parameters.
This commit is contained in:
Alexander Smorkalov 2013-02-11 09:43:44 +04:00
parent 716e0192b3
commit 283b26e2db
2 changed files with 2 additions and 2 deletions

View File

@ -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 */

View File

@ -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 */