Пример #1
0
        /// <summary>
        /// Release a reference on a component
        /// Release an acquired reference on a component.Triggers the destruction of the component when
        /// the last reference is being released.
        /// \note This is in fact an alias of \ref mmal_component_destroy which is added to make client
        /// code clearer.
        /// </summary>
        public void Release()
        {
            var status = MMALNativeMethods.ComponentRelease(this.m_handle);

            if (status != MMAL_STATUS_T.MMAL_SUCCESS)
            {
                throw new MMALException(status);
            }
        }