[vlc-devel] [PATCH 3/3] kai: fix compilation

Thomas Guillem thomas at gllm.fr
Fri May 11 09:26:04 CEST 2018


OK, merged, thanks

On Thu, May 10, 2018, at 14:41, KO Myung-Hun wrote:
> ---
>  modules/audio_output/kai.c | 15 ++++++++++-----
>  1 file changed, 10 insertions(+), 5 deletions(-)
> 
> diff --git a/modules/audio_output/kai.c b/modules/audio_output/kai.c
> index 59706c1926..6127a1cb98 100644
> --- a/modules/audio_output/kai.c
> +++ b/modules/audio_output/kai.c
> @@ -312,7 +312,8 @@ static void Pause( audio_output_t *aout, bool pause, 
> mtime_t date )
>  
>  static void Flush( audio_output_t *aout, bool drain )
>  {
> -    audio_buffer_t *buffer = aout->sys->buffer;
> +    aout_sys_t     *sys = aout->sys;
> +    audio_buffer_t *buffer = sys->buffer;
>  
>      vlc_mutex_lock( &buffer->mutex );
>  
> @@ -367,14 +368,16 @@ static int CreateBuffer( audio_output_t *aout, int size )
>      vlc_mutex_init( &buffer->mutex );
>      vlc_cond_init( &buffer->cond );
>  
> -    aout->sys->buffer = buffer;
> +    aout_sys_t *sys = aout->sys;
> +    sys->buffer = buffer;
>  
>      return 0;
>  }
>  
>  static void DestroyBuffer( audio_output_t *aout )
>  {
> -    audio_buffer_t *buffer = aout->sys->buffer;
> +    aout_sys_t     *sys = aout->sys;
> +    audio_buffer_t *buffer = sys->buffer;
>  
>      vlc_mutex_destroy( &buffer->mutex );
>      vlc_cond_destroy( &buffer->cond );
> @@ -385,7 +388,8 @@ static void DestroyBuffer( audio_output_t *aout )
>  
>  static int ReadBuffer( audio_output_t *aout, uint8_t *data, int size )
>  {
> -    audio_buffer_t *buffer = aout->sys->buffer;
> +    aout_sys_t     *sys = aout->sys;
> +    audio_buffer_t *buffer = sys->buffer;
>      int             len;
>      int             remain_len = 0;
>  
> @@ -419,7 +423,8 @@ static int ReadBuffer( audio_output_t *aout, uint8_t 
> *data, int size )
>  
>  static int WriteBuffer( audio_output_t *aout, uint8_t *data, int size )
>  {
> -    audio_buffer_t *buffer = aout->sys->buffer;
> +    aout_sys_t     *sys = aout->sys;
> +    audio_buffer_t *buffer = sys->buffer;
>      int             len;
>      int             remain_len = 0;
>  
> -- 
> 2.13.3
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list