Mercurial > mplayer.hg
diff libao2/ao_coreaudio.c @ 29439:02dec439f717
100l, av_fifo_generic_read does not return anything useful, so ignore its
return value and return len instead.
author | reimar |
---|---|
date | Sat, 08 Aug 2009 08:17:35 +0000 |
parents | f01023c524c3 |
children | 9d09ff127c25 |
line wrap: on
line diff
--- a/libao2/ao_coreaudio.c Fri Aug 07 09:07:02 2009 +0000 +++ b/libao2/ao_coreaudio.c Sat Aug 08 08:17:35 2009 +0000 @@ -115,7 +115,8 @@ static int read_buffer(unsigned char* data,int len){ int buffered = av_fifo_size(ao->buffer); if (len > buffered) len = buffered; - return av_fifo_generic_read(ao->buffer, data, len, NULL); + av_fifo_generic_read(ao->buffer, data, len, NULL); + return len; } OSStatus theRenderProc(void *inRefCon, AudioUnitRenderActionFlags *inActionFlags, const AudioTimeStamp *inTimeStamp, UInt32 inBusNumber, UInt32 inNumFrames, AudioBufferList *ioData)