Use unique_ptr in video modes.