VDPAU: improve error handling
Merge pull request #4638 from FernetMenta/vdpau2

VDPAU: improve error handling (ffmpeg 2.2)