Logo Search packages:      
Sourcecode: camstream version File versions  Download package

void CVideoDevice::CleanUp (  )  [private]

Cleans up mmap()ed stuff and buffers.

This function must be called after the last Close()

Definition at line 247 of file VideoDevice.cc.

References MSync().

Referenced by Close(), and ~CVideoDevice().

{
   if (VMBuf.size > 0) {
     MSync(); // Just to make sure
     munmap(vid_io_buffer, vid_io_buffer_size);
     VMBuf.size = 0;
   }
   else
     delete [] vid_io_buffer;
   vid_io_buffer = NULL;
   vid_io_buffer_size = 0;
}


Generated by  Doxygen 1.6.0   Back to index