Example #1
0
 public void Close()
 {
     if (this.pAviCompressedStream != IntPtr.Zero)
     {
         Avi32Interop.AVIStreamRelease(this.pAviCompressedStream);
         this.pAviCompressedStream = IntPtr.Zero;
     }
     if (this.pVideoStream != IntPtr.Zero)
     {
         Avi32Interop.AVIStreamRelease(this.pVideoStream);
         this.pVideoStream = IntPtr.Zero;
     }
     if (this.pAudioStream != IntPtr.Zero)
     {
         Avi32Interop.AVIStreamRelease(this.pAudioStream);
         this.pAudioStream = IntPtr.Zero;
     }
     if (this.audioEncoder != null)
     {
         this.audioEncoder.Close();
         this.audioEncoder = null;
     }
     if (this.pAviFile != IntPtr.Zero)
     {
         Avi32Interop.AVIFileRelease(this.pAviFile);
         this.pAviFile = IntPtr.Zero;
     }
     this.opened = false;
 }