[vlc-devel] [PATCH 1/2] aout/coreaudio: use vlc_mutex_t instead of pthread_mutex_t

Marvin Scholz epirat07 at gmail.com
Sat Feb 22 03:23:38 CET 2020


The fact that currently vlc_mutex_t is the same as pthread_mutex_t
is an implementation detail, there is no reason not to use vlc_mutex_t
here.
---
 modules/audio_output/coreaudio_common.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/coreaudio_common.h b/modules/audio_output/coreaudio_common.h
index 49f6779234..4bd6139493 100644
--- a/modules/audio_output/coreaudio_common.h
+++ b/modules/audio_output/coreaudio_common.h
@@ -72,7 +72,7 @@ struct aout_sys_common
 #pragma clang diagnostic ignored "-Wpartial-availability"
         os_unfair_lock  unfair;
 #pragma clang diagnostic pop
-        pthread_mutex_t mutex;
+        vlc_mutex_t     mutex;
     } lock;
 
     int                 i_rate;
-- 
2.21.1 (Apple Git-122.3)



More information about the vlc-devel mailing list