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:
parent
f796b67431
commit
5328c8001b
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue