public void Dispose() { Stop(); if (_ffimp != null) { _ffimp.Release(); } if (_yuvDraw != null) { _yuvDraw.Release(); } _yuvDataBuffer = null; }
public void Dispose() { try { if (_isworking) { Stop(); } _capturer.Dispose(); _ffscale.Release(); _x264.Release(); _draw.Release(); } catch (Exception e) { throw; } }