public void Close() { try { this.Lock.AcquireWriterLock(10000); } catch { } try { if (!Ready) { return; } Ready = false; FDevice.StopStreams(); FDevice.DisableVideoInput(); } finally { this.Lock.ReleaseWriterLock(); } }
protected override void Close() { try { FDevice.StopStreams(); FDevice.DisableVideoInput(); Status = "Closed"; } catch (Exception e) { Status = e.Message; } }
public void Stop(bool reportError = true) { try { recorder.StopStreams(); recorder.DisableAudioInput(); recorder.DisableVideoInput(); } catch (Exception ex) { if (reportError) { MessageBox.Show($"Cannot stop fingerprinting: {ex.Message}", "Error", MessageBoxButton.OK); } } }
public void StopCapture() { if (!m_currentlyCapturing) { return; } RemoveAllListeners(); // Stop the capture m_deckLinkInput.StopStreams(); // Disable video input m_deckLinkInput.DisableVideoInput(); // Disable callbacks m_deckLinkInput.SetScreenPreviewCallback(null); m_deckLinkInput.SetCallback(null); m_currentlyCapturing = false; }
public void Close() { WorkerThread.Singleton.PerformBlocking(() => { this.Lock.AcquireWriterLock(10000); try { if (!Ready) { return; } Ready = false; FDevice.StopStreams(); FDevice.DisableVideoInput(); } finally { this.Lock.ReleaseWriterLock(); } }); }