st/vdpau: destroy handle table only when it's empty
Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
@@ -55,7 +55,7 @@ void vlDestroyHTAB(void)
|
||||
{
|
||||
#ifdef VL_HANDLES
|
||||
pipe_mutex_lock(htab_lock);
|
||||
if (htab) {
|
||||
if (htab && !handle_table_get_first_handle(htab)) {
|
||||
handle_table_destroy(htab);
|
||||
htab = NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user