[vlc-commits] aout/coreaudio: Use symbols directly instead of dlsym
Marvin Scholz
git at videolan.org
Wed Nov 20 14:13:13 CET 2019
vlc/vlc-3.0 | branch: master | Marvin Scholz <epirat07 at gmail.com> | Fri Aug 2 13:59:13 2019 +0200| [1526f998d3cbff0a8bceebd8f2be6430972bc763] | committer: Thomas Guillem
aout/coreaudio: Use symbols directly instead of dlsym
It is not needed to load the symbols using dlsym here, they will be
automatically available if the OS version is recent enough or NULL if
not.
(cherry picked from commit 58036e27b2152d8219fcfe173bc0f20a00df0dd0)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1526f998d3cbff0a8bceebd8f2be6430972bc763
---
modules/audio_output/coreaudio_common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/audio_output/coreaudio_common.c b/modules/audio_output/coreaudio_common.c
index 781f711e31..aca0e3f705 100644
--- a/modules/audio_output/coreaudio_common.c
+++ b/modules/audio_output/coreaudio_common.c
@@ -89,10 +89,10 @@ ca_ClearOutBuffers(audio_output_t *p_aout)
static void
ca_init_once(void)
{
- unfair_lock.lock = dlsym(RTLD_DEFAULT, "os_unfair_lock_lock");
+ unfair_lock.lock = os_unfair_lock_lock;
if (!unfair_lock.lock)
return;
- unfair_lock.unlock = dlsym(RTLD_DEFAULT, "os_unfair_lock_unlock");
+ unfair_lock.unlock = os_unfair_lock_unlock;
if (!unfair_lock.unlock)
unfair_lock.lock = NULL;
More information about the vlc-commits
mailing list