Allow VAAPI profile to be used more than once in a row.

Fixes #11746