[vlc-commits] kai: fix compilation
KO Myung-Hun
git at videolan.org
Fri May 11 09:25:51 CEST 2018
vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Thu May 10 21:41:48 2018 +0900| [6ffca3f60d54a2a4f0d2bfb62882946adc99974c] | committer: Thomas Guillem
kai: fix compilation
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ffca3f60d54a2a4f0d2bfb62882946adc99974c
---
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;
More information about the vlc-commits
mailing list