fix video recorder deadlock