示例#1
0
 public void Dispose()
 {
     if (currSegment != null)
     {
         currSegment.Dispose();
     }
 }
示例#2
0
        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();
            }
        }
示例#3
0
 public void Dispose()
 {
     _currSegment?.Dispose();
 }