vaapi: fix potential segfault when pp method is changed
Merge pull request #5352 from FernetMenta/vaapifix

vaapi: fix potential segfault when pp method is changed