st/vdpau: add device reference counting
authorChristian König <christian.koenig@amd.com>
Wed, 13 Aug 2014 13:49:18 +0000 (15:49 +0200)
committerChristian König <christian.koenig@amd.com>
Thu, 14 Aug 2014 09:57:07 +0000 (11:57 +0200)
commit6fb42ee7a632e181160ac4be234b30e50a1b91d5
tree962b6f4da56cdc0d8791f65177a4ce111dc0a966
parentc1df492d03862f75698ba5d50d4f46cd528ffc0d
st/vdpau: add device reference counting

This fixes an issue with flash where it tries to destroy a decoder
after already destroying the device associated with the decoder.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=82517
Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/state_trackers/vdpau/bitmap.c
src/gallium/state_trackers/vdpau/decode.c
src/gallium/state_trackers/vdpau/device.c
src/gallium/state_trackers/vdpau/mixer.c
src/gallium/state_trackers/vdpau/output.c
src/gallium/state_trackers/vdpau/presentation.c
src/gallium/state_trackers/vdpau/surface.c
src/gallium/state_trackers/vdpau/vdpau_private.h