Commit 82a8724d authored by jerett's avatar jerett Committed by Rick Kern

lavc/videotoolboxenc: fix loadVTEncSymbols crash when symbol not found

Signed-off-by: 's avatarRick Kern <kernrj@gmail.com>
parent ea1d07ae
......@@ -73,11 +73,11 @@ static struct{
#define GET_SYM(symbol, defaultVal) \
do{ \
CFStringRef cfstr = *(CFStringRef*)dlsym(RTLD_DEFAULT, #symbol); \
if(!cfstr) \
CFStringRef* handle = (CFStringRef*)dlsym(RTLD_DEFAULT, #symbol); \
if(!handle) \
compat_keys.symbol = CFSTR(defaultVal); \
else \
compat_keys.symbol = cfstr; \
compat_keys.symbol = *handle; \
}while(0)
static pthread_once_t once_ctrl = PTHREAD_ONCE_INIT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment