/// <summary> /// Acquire a buffer header. Acquiring a buffer header increases a reference counter on it and makes /// sure that the buffer header won't be recycled until all the references to it are gone. /// </summary> internal void Acquire() { if (this.CheckState()) { MMALBuffer.mmal_buffer_header_acquire(this.Ptr); } }
/// <summary> /// Acquire a buffer header. Acquiring a buffer header increases a reference counter on it and makes /// sure that the buffer header won't be recycled until all the references to it are gone. /// </summary> internal void Acquire() { if (this.Ptr != null && (IntPtr)this.Ptr != IntPtr.Zero) { MMALBuffer.mmal_buffer_header_acquire(this.Ptr); } }
/// <summary> /// Acquire a buffer header. Acquiring a buffer header increases a reference counter on it and makes /// sure that the buffer header won't be recycled until all the references to it are gone. /// </summary> internal void Acquire() { MMALBuffer.mmal_buffer_header_acquire(this.Ptr); }