vdpau_wrapper: protect concurrent access to _imp_get_proc_address
vdpau_wrapper: protect concurrent access to _imp_get_proc_address

The wrapper, as it's currently written, cannot cope with more than one
VdpGetProcAddress implementation. Luckily, this should hardly ever
happen.

This patch protects access to the _imp_get_proc_address variable to
conform to the memory model, and ensures that a single VDPAU
implementation is used - failing safe if not so.

Reviewed-by: Aaron Plattner <7c39395e2e801146cdbd7fb4a41282e4f38db44e@nvidia.com>
Signed-off-by: Aaron Plattner <7c39395e2e801146cdbd7fb4a41282e4f38db44e@nvidia.com>

mosterta/libvdpau,Distrotech/libvdpau,mosterta/libvdpau,mosterta/libvdpau,Distrotech/libvdpau,Distrotech/libvdpau