Commit 478822dc authored by PamoshaKW's avatar PamoshaKW

Java camera view runtime crash fixed.

parent 78c63681
......@@ -370,7 +370,15 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
if (!mStopThread && hasFrame) {
if (!mFrameChain[1 - mChainIdx].empty())
deliverAndDrawFrame(mCameraFrame[1 - mChainIdx]);
try
{
deliverAndDrawFrame(mCameraFrame[1 - mChainIdx]);
}
catch (Exception e)
{
e.printStackTrace();
}
}
} while (!mStopThread);
Log.d(TAG, "Finish processing 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