public void Dispose() { if (_videoEncoder != null) { lock (_videoEncoder) { _videoEncoder.Dispose(); } } }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { _videoRecord.Dispose(); _videoLiveBroadcast.Dispose(); _videoEncoder.Dispose(); _aacEncoder.Dispose(); _audioDeviceManager.Dispose(); } disposedValue = true; } }
public void Dispose() { _isClosed = true; _sendTestPatternTimer?.Dispose(); _videoEncoder?.Dispose(); }