[AVSwitch] fix possible BSOD.