Commit 29519a1a authored by Kateryna Kostiuk's avatar Kateryna Kostiuk

video preferences: stop preview

Stop preview when video preferences window closed

Change-Id: Ib8fb3abe621be91858e1f7620dbde4bb14c7e7d6
parent d8e0c3fb
......@@ -80,11 +80,12 @@ std::string currentVideoDevice;
QObject::disconnect(previewStopped);
QObject::disconnect(previewStarted);
QObject::disconnect(deviceEvent);
if (!self.shouldHandlePreview) {
return;
AppDelegate* appDelegate = (AppDelegate *)[[NSApplication sharedApplication] delegate];
if (![appDelegate getActiveCalls].size()) {
self.previewView.stopRendering = true;
avModel->stopPreview();
[previewView fillWithBlack];
}
self.previewView.stopRendering = true;
avModel->stopPreview();
}
- (void)viewWillAppear {
......
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