Skip to content
Snippets Groups Projects
Commit 58ebc272 authored by Ken Tossell's avatar Ken Tossell
Browse files

forgot to uvc_exit(ctx) -- driver now closes on sigint

parent 9bb5b0a6
No related branches found
No related tags found
No related merge requests found
......@@ -50,10 +50,15 @@ bool CameraDriver::Start() {
void CameraDriver::Stop() {
boost::recursive_mutex::scoped_lock(mutex_);
if (state_ == kRunning) {
assert(state_ != kInitial);
if (state_ == kRunning)
CloseCamera();
state_ = kInitial;
}
assert(state_ == kStopped);
uvc_exit(ctx_);
ctx_ = NULL;
}
void CameraDriver::ReconfigureCallback(UVCCameraConfig &new_config, uint32_t level) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment