void stopRecording(){
  if (DEBUG)   Log.v(TAG,"stopRecording");
synchronized (mSync) {
    if (!mIsCapturing || mRequestStop) {
      return;
    }
    mRequestStop=true;
    mSync.notifyAll();
  }
}

void stopRecording ( ) { if ( DEBUG ) Log . v ( TAG , "stopRecording" ) ; synchronized ( mSync ) { if ( ! mIsCapturing || mRequestStop ) { return ; } mRequestStop = true ; mSync . notifyAll ( ) ; } }
the method to request stop encoding
