History

lavfi/vulkan: allow calling glslang_uninit without a prior init

Allows us to uninit cleanly. This assert was also somewhat pointless as we assert every other function, so another assert would be triggered long before this one is.

Lynne committed 5 years ago

Commit ae8fc991 parent 993d8d91 file · +1 −2Browse files

Showing the changes to libavfilter/glslang.cpp (1 of 1 file). Show all

Unified · Split

libavfilter/glslang.cpp+1−2
@@ -235,8 +235,7 @@ int glslang_init(void) · 234 unmodified lines
235void glslang_uninit(void)235void glslang_uninit(void)
236{236{
237 pthread_mutex_lock(&glslang_mutex);237 pthread_mutex_lock(&glslang_mutex);
238 av_assert0(glslang_refcount > 0);238 if (glslang_refcount && (--glslang_refcount == 0))
239 if (--glslang_refcount == 0)
240 FinalizeProcess();239 FinalizeProcess();
241 pthread_mutex_unlock(&glslang_mutex);240 pthread_mutex_unlock(&glslang_mutex);
242}241}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t