diff options
author | Christian König <christian.koenig@amd.com> | 2013-05-23 19:17:19 +0200 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2013-05-27 18:18:32 +0200 |
commit | 8ea34fa0e8e2c5ac7583777cdb91f3abe8ce9f8c (patch) | |
tree | 15249aca159bd9581fb4d505886048c8486f5177 /src/gallium | |
parent | 5de41575a127eb8a6a0fe5c71a73b372f9b89f53 (diff) | |
download | external_mesa3d-8ea34fa0e8e2c5ac7583777cdb91f3abe8ce9f8c.zip external_mesa3d-8ea34fa0e8e2c5ac7583777cdb91f3abe8ce9f8c.tar.gz external_mesa3d-8ea34fa0e8e2c5ac7583777cdb91f3abe8ce9f8c.tar.bz2 |
st/vdpau: invalidate the handles on destruction
Fixes a problem with xbmc when switching channels.
Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/vdpau/decode.c | 1 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/device.c | 1 | ||||
-rw-r--r-- | src/gallium/state_trackers/vdpau/surface.c | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/vdpau/decode.c b/src/gallium/state_trackers/vdpau/decode.c index 61b10e0..2ffd8dd 100644 --- a/src/gallium/state_trackers/vdpau/decode.c +++ b/src/gallium/state_trackers/vdpau/decode.c @@ -139,6 +139,7 @@ vlVdpDecoderDestroy(VdpDecoder decoder) vldecoder->decoder->destroy(vldecoder->decoder); pipe_mutex_unlock(vldecoder->device->mutex); + vlRemoveDataHTAB(decoder); FREE(vldecoder); return VDP_STATUS_OK; diff --git a/src/gallium/state_trackers/vdpau/device.c b/src/gallium/state_trackers/vdpau/device.c index c530f43..a829c27 100644 --- a/src/gallium/state_trackers/vdpau/device.c +++ b/src/gallium/state_trackers/vdpau/device.c @@ -166,6 +166,7 @@ vlVdpDeviceDestroy(VdpDevice device) dev->context->destroy(dev->context); vl_screen_destroy(dev->vscreen); + vlRemoveDataHTAB(device); FREE(dev); vlDestroyHTAB(); diff --git a/src/gallium/state_trackers/vdpau/surface.c b/src/gallium/state_trackers/vdpau/surface.c index ad56125..135eb85 100644 --- a/src/gallium/state_trackers/vdpau/surface.c +++ b/src/gallium/state_trackers/vdpau/surface.c @@ -132,7 +132,9 @@ vlVdpVideoSurfaceDestroy(VdpVideoSurface surface) p_surf->video_buffer->destroy(p_surf->video_buffer); pipe_mutex_unlock(p_surf->device->mutex); + vlRemoveDataHTAB(surface); FREE(p_surf); + return VDP_STATUS_OK; } |