Commit 70ebc05b authored by Rick Kern's avatar Rick Kern

lavc/videotoolboxenc: fix symbol linking

Removes explicit reference to symbols and fixes dereferencing issue.
Signed-off-by: 's avatarRick Kern <kernrj@gmail.com>
parent 7b5ff7d5
......@@ -74,11 +74,11 @@ static struct{
#define GET_SYM(symbol, defaultVal) \
do{ \
CFStringRef cfstr = dlsym(RTLD_DEFAULT, #symbol); \
CFStringRef cfstr = *(CFStringRef*)dlsym(RTLD_DEFAULT, #symbol); \
if(!cfstr) \
compat_keys.symbol = CFSTR(defaultVal); \
else \
compat_keys.symbol = symbol; \
compat_keys.symbol = cfstr; \
}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