vaapi: flush ffmpeg buffers if it holds any refs on close
vaapi: drop unused member
renderer: bump number of buffers for vdpau and vaapi
Merge pull request #5391 from FernetMenta/vaapivdpau

Vaapivdpau: fix and optimization