public void Dispose() { if (currSegment != null) { currSegment.Dispose(); } }
private void Segment() { if (!IsOpen) { return; } if (_currSegment == null) { StartRecording(); } else { _currSegment.Dispose(); } _currSegment = new AviWriterSegment(); _nameProvider.MoveNext(); _currSegment.OpenFile(_nameProvider.Current, parameters, _currVideoCodecToken); try { _currSegment.OpenStreams(); } catch // will automatically try again with 32 bit { _currSegment.OpenStreams(); } }
public void Dispose() { _currSegment?.Dispose(); }