Commit fce1f275 authored by Thiago Santini's avatar Thiago Santini

Fixed uvc_close issues

parent aef0428d
...@@ -164,17 +164,9 @@ bool UVCCameraSession::unload() ...@@ -164,17 +164,9 @@ bool UVCCameraSession::unload()
if (streaming) if (streaming)
stopPreview(); stopPreview();
#ifdef _WIN32 if (devh)
// TODO: closing here seems to mess up the device uvc_close(devh);
//if (devh)
// uvc_close(devh);
devh = NULL; devh = NULL;
// For linux it seems to work as expected
if (devh)
devh = NULL;
m_supportedViewfinderSettings.clear(); m_supportedViewfinderSettings.clear();
return true; return true;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment