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;
     }
 }
Пример #3
0
 public void Dispose()
 {
     _isClosed = true;
     _sendTestPatternTimer?.Dispose();
     _videoEncoder?.Dispose();
 }