VDPAU: improve error handling, Gotham
Merge pull request #4641 from FernetMenta/vdpau

VDPAU:  fixes freeze due to corrupted video stream, Gotham