core: remove looping in update_video(), modify command handling a bit