From 547e358796b9d82041b94f18f9ddcb972b8f1e7e Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Fri, 21 May 2004 22:31:07 +0000 Subject: do input buffering in while sleeping loop of sending stuff to output buffer git-svn-id: https://svn.musicpd.org/mpd/trunk@1125 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/ogg_decode.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ogg_decode.c') diff --git a/src/ogg_decode.c b/src/ogg_decode.c index cdce55367..2cb70c4e1 100644 --- a/src/ogg_decode.c +++ b/src/ogg_decode.c @@ -241,16 +241,16 @@ int ogg_decode(OutputBuffer * cb, DecoderControl * dc, InputStream * inStream) } doReplayGain(chunk,ret,&(dc->audioFormat), replayGainScale); - sendDataToOutputBuffer(cb,dc,chunk,chunkpos, - ov_time_tell(&vf),bitRate); + sendDataToOutputBuffer(cb, inStream, dc, chunk, + chunkpos, ov_time_tell(&vf), bitRate); if(dc->stop) break; chunkpos = 0; } } if(!dc->stop && chunkpos > 0) { - sendDataToOutputBuffer(cb,dc,chunk,chunkpos, - ov_time_tell(&vf),bitRate); + sendDataToOutputBuffer(cb, NULL, dc, chunk, chunkpos, + ov_time_tell(&vf), bitRate); } ov_clear(&vf); -- cgit v1.2.3