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>
This commit is contained in:
Christian König 2013-05-23 19:17:19 +02:00
parent 5de41575a1
commit 8ea34fa0e8
3 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -166,6 +166,7 @@ vlVdpDeviceDestroy(VdpDevice device)
dev->context->destroy(dev->context);
vl_screen_destroy(dev->vscreen);
vlRemoveDataHTAB(device);
FREE(dev);
vlDestroyHTAB();

View File

@ -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;
}