/// <summary>
 /// Release a buffer header. Releasing a buffer header will decrease its reference counter and when no more references are left,
 /// the buffer header will be recycled by calling its 'release' callback function.
 /// </summary>
 internal void Release()
 {
     if (this.Ptr != null && (IntPtr)this.Ptr != IntPtr.Zero)
     {
         MMALBuffer.mmal_buffer_header_release(this.Ptr);
     }
     this.Dispose();
 }
        /// <summary>
        /// Release a buffer header. Releasing a buffer header will decrease its reference counter and when no more references are left,
        /// the buffer header will be recycled by calling its 'release' callback function.
        /// </summary>
        internal void Release()
        {
            if (this.CheckState())
            {
                if (MMALCameraConfig.Debug)
                {
                    MMALLog.Logger.Debug("Releasing buffer.");
                }

                MMALBuffer.mmal_buffer_header_release(this.Ptr);
            }
            else
            {
                MMALLog.Logger.Warn("Input buffer null, could not release.");
            }

            this.Dispose();
        }
Beispiel #3
0
 /// <summary>
 /// Release a buffer header. Releasing a buffer header will decrease its reference counter and when no more references are left,
 /// the buffer header will be recycled by calling its 'release' callback function.
 /// </summary>
 internal void Release()
 {
     MMALBuffer.mmal_buffer_header_release(this.Ptr);
     this.Dispose();
 }