diff options
author | Christian König <[email protected]> | 2013-05-23 19:31:08 +0200 |
---|---|---|
committer | Christian König <[email protected]> | 2013-05-27 18:18:32 +0200 |
commit | 5328c8001b26b5a341edaec3618919dd8a4de52f (patch) | |
tree | b0fae9fabde8cc30ff3717326be8b1a0a8dd8267 | |
parent | f796b67431cfcadecfa983f9fc952dbee228cec0 (diff) |
st/vdpau: destroy handle table only when it's empty
Signed-off-by: Christian König <[email protected]>
-rw-r--r-- | src/gallium/state_trackers/vdpau/htab.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/vdpau/htab.c b/src/gallium/state_trackers/vdpau/htab.c index 39ff7be3786..8b809f2cb5e 100644 --- a/src/gallium/state_trackers/vdpau/htab.c +++ b/src/gallium/state_trackers/vdpau/htab.c @@ -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; } |