diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-08 08:17:35 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-08-08 08:17:35 +0000 |
commit | 3b6b050e1471702176e6e0cdca96d409a89221ef (patch) | |
tree | 8ee23732454f478ba21f22e34078cd1c38e63c40 /libao2/ao_sdl.c | |
parent | a04ec2484b24957cafbb65a49540a40d21857a66 (diff) |
100l, av_fifo_generic_read does not return anything useful, so ignore its
return value and return len instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29481 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libao2/ao_sdl.c')
-rw-r--r-- | libao2/ao_sdl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libao2/ao_sdl.c b/libao2/ao_sdl.c index aae6e3fc7d..329486b272 100644 --- a/libao2/ao_sdl.c +++ b/libao2/ao_sdl.c @@ -82,10 +82,11 @@ static int read_buffer(unsigned char* data,int len){ int buffered = av_fifo_size(buffer); if (len > buffered) len = buffered; #ifdef USE_SDL_INTERNAL_MIXER - return av_fifo_generic_read(buffer, data, len, mix_audio); + av_fifo_generic_read(buffer, data, len, mix_audio); #else - return av_fifo_generic_read(buffer, data, len, NULL); + av_fifo_generic_read(buffer, data, len, NULL); #endif + return len; } // end ring buffer stuff |