[vlc-devel] [PATCH 1/2] aout/coreaudio: use vlc_mutex_t instead of pthread_mutex_t
Rémi Denis-Courmont
remi at remlab.net
Sat Feb 22 08:31:53 CET 2020
Le lauantaina 22. helmikuuta 2020, 4.23.38 EET Marvin Scholz a écrit :
> 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;
Probably ok.
--
Rémi Denis-Courmont
http://www.remlab.net/
More information about the vlc-devel
mailing list