Fixed race condition with video initialization.