Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 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();
 }