Skip to content
Snippets Groups Projects
Commit 242a3d0f authored by Rafaël Carré's avatar Rafaël Carré
Browse files

* #6326 : don't destroy preview widget more than one time

parent d19747e3
No related branches found
No related tags found
No related merge requests found
...@@ -984,10 +984,12 @@ void ConfigurationManager::startVideoPreview(const int32_t &width, const int32_t ...@@ -984,10 +984,12 @@ void ConfigurationManager::startVideoPreview(const int32_t &width, const int32_t
void ConfigurationManager::stopVideoPreview() void ConfigurationManager::stopVideoPreview()
{ {
if (preview_.get()) {
_debug("Stopping video preview"); _debug("Stopping video preview");
preview_->stop(); preview_->stop();
preview_.reset(); preview_.reset();
// notify client via dbus // notify client via dbus
videoStopped(); videoStopped();
} }
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment