capture_destroy_context()
Disconnect from the video capture device, and destroy the context.
Synopsis:
#include <vcapture/capture.h>
void capture_destroy_context( capture_context_t context );
Arguments:
- context
- The pointer to the video capture context to destroy.
Library:
libcapture
Description:
The function
capture_destroy_context():
- disconnects from a video capture device
- destroys the specified context
When this function returns, you can safely release the video capture buffers you have been using with
this context.
DANGER
This function is not signal handler safe! We recommend that your application create a
separate thread for signal handling. The signal thread can then destroy the capture
context by instructing another thread to call capture_destroy_context().
For more information about video capture contexts, see "Contexts".