Commit 6ad85d0d authored by Thiago Santini's avatar Thiago Santini

Sets viewfinder to null before deleting camera

parent 2518d10c
......@@ -41,6 +41,7 @@ void Camera::reset()
if (camera) {
camera->stop();
camera->unload();
camera->setViewfinder( static_cast<FrameGrabber*>(NULL) );
// Delete straight away so the destructor from uvcengine service get's
// called and the device is not busy anymore
//camera->deleteLater();
......
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