/// <summary> /// Dispose method. /// </summary> public void Dispose() { // check for null since it's possible that Start was never called if (this.writer != null) { this.writer.Close(); ((IDisposable)this.writer).Dispose(); // Cast to IDisposable to suppress false CA2213 warning this.writer = null; MP4Writer.Shutdown(); } }
/// <summary> /// Dispose method /// </summary> public void Dispose() { // check for null since it's possible that Start was never called if (this.writer != null) { this.writer.Close(); this.writer.Dispose(); this.writer = null; MP4Writer.Shutdown(); } }
/// <summary> /// Called by the pipeline when media capture should be stopped /// </summary> void IStartable.Stop() { this.writer.Close(); this.writer = null; MP4Writer.Shutdown(); }