capture_destroy_context()
Graphics and Screen4.0 (8.x)Video Capture Developer's GuideAPIProgramming
Disconnect from the video capture device, and destroy the video capture 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:
libcaptureDescription:
This function:
- 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.
Note: 
This function is not signal handler safe! You must create a separate clean-up thread for signal handling. This signal-handling thread can destroy the capture context by instructing another thread to call capture_destroy_context().
Returns:
Nothing.
Page updated: 
