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

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