private void SwitcherDisconnected() { IsConnected = false; // Remove all input monitors, remove callbacks foreach (InputMonitor inputMon in m_inputMonitors) { inputMon.Input.RemoveCallback(inputMon); inputMon.LongNameChanged -= new SwitcherEventHandler(OnInputLongNameChanged); } m_inputMonitors.Clear(); if (m_mixEffectBlock1 != null) { // Remove callback m_mixEffectBlock1.RemoveCallback(m_mixEffectBlockMonitor); // Release reference m_mixEffectBlock1 = null; } if (m_switcher != null) { // Remove callback: m_switcher.RemoveCallback(m_switcherMonitor); // release reference: m_switcher = null; } }
public void SwitcherDisconnected() { if (m_mixEffectBlock != null) { // Remove callback m_mixEffectBlock.RemoveCallback(m_mixEffectBlockMonitor); // Release reference m_mixEffectBlock = null; } if (m_switcherDiscovery != null) { m_switcherDiscovery = null; } }
private void SwitcherDisconnected() { if (m_mixEffectBlock1 != null) { // Remove callback m_mixEffectBlock1.RemoveCallback(m_mixEffectBlockMonitor); // Release reference m_mixEffectBlock1 = null; } if (m_switcher != null) { // Remove callback: m_switcher.RemoveCallback(m_switcherMonitor); // release reference: m_switcher = null; } }