Skip to content

Commit 1a56919

Browse files
committed
random updates
Signed-off-by: Umair Khan <[email protected]>
1 parent a304559 commit 1a56919

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/in/omerjerk/processing/video/android/Capture.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,9 +223,7 @@ public CameraHandler(CameraHandlerCallback c) {
223223
@Override // runs on UI thread
224224
public void handleMessage(Message inputMessage) {
225225
int what = inputMessage.what;
226-
log("CameraHandler [" + this + "]: what=" + what);
227226

228-
// MainActivity activity = mWeakActivity.get();
229227
if (callback == null) {
230228
return;
231229
}
@@ -287,6 +285,7 @@ public void startCamera(Integer cameraId) {
287285
cameraId = 0;
288286
}
289287
try {
288+
log("Starting camera with camera id = " + cameraId);
290289
mCamera = Camera.open(cameraId);
291290
mCamera.setDisplayOrientation(90);
292291
} catch (Exception e) {
@@ -419,8 +418,8 @@ private void prepareFrameBuffers() {
419418
public void getImage(boolean loadPixels) {
420419

421420
if (destpg == null || destpg.width != width || destpg.height != height) {
422-
destpg = (PGraphicsOpenGL) parent.createGraphics(width, height, PConstants.P2D);
423-
destpg.pgl.setGlThread(Thread.currentThread());
421+
destpg = (PGraphicsOpenGL) parent.createGraphics(width, height, PConstants.P2D);
422+
destpg.pgl.setGlThread(Thread.currentThread());
424423
}
425424

426425
destpg.beginDraw();

0 commit comments

Comments
 (0)