Commit fce1f275 authored by Thiago Santini's avatar Thiago Santini

Fixed uvc_close issues

parent aef0428d
......@@ -164,17 +164,9 @@ bool UVCCameraSession::unload()
if (streaming)
stopPreview();
#ifdef _WIN32
// TODO: closing here seems to mess up the device
//if (devh)
// uvc_close(devh);
if (devh)
uvc_close(devh);
devh = NULL;
#else
// For linux it seems to work as expected
if (devh)
uvc_close(devh);
devh = NULL;
#endif
m_supportedViewfinderSettings.clear();
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