protected override void Dispose(bool disposing) { IntPtr zero = IntPtr.Zero; LibVlcMethods.libvlc_video_set_callbacks(m_hMediaPlayer, zero, zero, zero, zero); if (m_pixelData != default(PlanarPixelData)) { m_pixelData.Dispose(); } if (disposing) { m_timer.Dispose(); m_callback = null; m_callbacks.Clear(); } }
protected override void Dispose(bool disposing) { IntPtr zero = IntPtr.Zero; LibVlcMethods.libvlc_video_set_callbacks(m_hMediaPlayer, zero, zero, zero, zero); if (m_pixelData != null) { m_pixelData.Dispose(); m_pixelData = null; } if (disposing) { m_timer.Dispose(); m_formatSetupCB = null; m_excHandler = null; m_callback = null; m_callbacks.Clear(); } }
public void SetCallback(NewFrameDataEventHandler callback) { m_callback = callback; }
protected override void Dispose(bool disposing) { var zero = IntPtr.Zero; LibVlcMethods.libvlc_video_set_callbacks(_mHMediaPlayer, zero, zero, zero, zero); if (_mPixelData != default(PlanarPixelData)) { _mPixelData.Dispose(); } if (disposing) { _mTimer.Dispose(); _mFormatSetupCb = null; _mExcHandler = null; _mCallback = null; _mCallbacks.Clear(); } }