/// <summary> /// Initializes a new instance of the <see cref="AVIOContextHandle"/> class. /// </summary> /// <param name="ffmpeg"> /// An implementation of the <see cref="FFmpegClient"/> interface, which allows releasing /// the handle. /// </param> /// <param name="context"> /// The handle to be wrapped. /// </param> /// <param name="ownsHandle"> /// <see langword="true"/> to reliably let <see cref="AVIOContextHandle"/> release the handle /// during the finalization phase; otherwise, <see langword="false "/> (not recommended). /// </param> public unsafe AVIOContextHandle(FFmpegClient ffmpeg, NativeAVIOContext *context, bool ownsHandle) : base((IntPtr)context, ownsHandle) { this.ffmpeg = ffmpeg; }
/// <summary> /// Initializes a new instance of the <see cref="AVIOContextHandle"/> class. /// </summary> /// <param name="ffmpeg"> /// An implementation of the <see cref="FFmpegClient"/> interface, which allows releasing /// the handle. /// </param> /// <param name="context"> /// The handle to be wrapped. /// </param> public unsafe AVIOContextHandle(FFmpegClient ffmpeg, NativeAVIOContext *context) : this(ffmpeg, context, true) { }