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

Unified · Split

libavfilter/glslang.cpp+1−2
@@ -235,8 +235,7 @@ int glslang_init(void) · 234 unmodified lines
235235 void glslang_uninit(void)
236236 {
237237 pthread_mutex_lock(&glslang_mutex);
238− av_assert0(glslang_refcount > 0);
239− if (--glslang_refcount == 0)
238+ if (glslang_refcount && (--glslang_refcount == 0))
240239 FinalizeProcess();
241240 pthread_mutex_unlock(&glslang_mutex);
242241 }

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