aboutsummaryrefslogtreecommitdiffhomepage
path: root/libao2/ao_sdl.c
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-08 08:17:35 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-08-08 08:17:35 +0000
commit3b6b050e1471702176e6e0cdca96d409a89221ef (patch)
tree8ee23732454f478ba21f22e34078cd1c38e63c40 /libao2/ao_sdl.c
parenta04ec2484b24957cafbb65a49540a40d21857a66 (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.c5
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