Fix timing issue for attempting to open multiple video codecs