xbmc/xbmc — comment on commit b28f8f15c9ff7dfa4fb8783ae64f1e77d8216277
File:  line 0
By FernetMenta:

I can check for VDP_STATUS_DISPLAY_PREEMPTED and return VDPAU_RESET in this case. But according to the spec it may also be a fatal error for this error code:

The display was preempted, or a fatal error occurred.
The application must re-initialize VDPAU.

I am not sure if it does any harm setting the state to VDPAU_RESET in this case. Which approach is better?