Video mode detection cleanup.