Exemplo n.º 1
0
 protected override void OnDestroy()
 {
     running = false;
     evt.WaitOne();
     base.OnDestroy();
     codec.Dispose();
     sview.Dispose();
 }
Exemplo n.º 2
0
        public bool Stop()
        {
            bool result = true;

            try {
                if (!IsStopped)
                {
                    surfaceHolder.Dispose();
                    windowManager.RemoveView(surfaceView);
                    surfaceView.Dispose();
                    windowManager.Dispose();
                    IsStopped = true;
                    cameraPreviewCallback.GotchaAFrameCallback = null;
                }
            } catch (Exception e) {
                Log.Error(TAG, "Error: " + e.StackTrace);
                result = false;
            }
            return(result);
        }