예제 #1
0
파일: AviWriter.cs 프로젝트: bangush/csharp
 /// <summary>Closes stream, file and AVI library</summary>
 public void Close()
 {
     if (aviStream != IntPtr.Zero)
     {
         Avi.AVIStreamRelease(aviStream);
         aviStream = IntPtr.Zero;
     }
     if (aviFile != 0)
     {
         Avi.AVIFileRelease(aviFile);
         aviFile = 0;
     }
     Avi.AVIFileExit();
 }
예제 #2
0
 /// <summary>Closes all streams, files and libraries</summary>
 public void Close()
 {
     if (getFrameObject != 0)
     {
         Avi.AVIStreamGetFrameClose(getFrameObject);
         getFrameObject = 0;
     }
     if (aviStream != IntPtr.Zero)
     {
         Avi.AVIStreamRelease(aviStream);
         aviStream = IntPtr.Zero;
     }
     if (aviFile != 0)
     {
         Avi.AVIFileRelease(aviFile);
         aviFile = 0;
     }
     Avi.AVIFileExit();
 }