From 8b141ae54edabf1fd020b5b81412ccca774ef89c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 10 Sep 2007 07:12:42 +0000 Subject: buffer input while waiting for outputBuffer space in mp4 and (ogg)flac Both mp4 and (ogg)flac inputPlugins got HTTP inputStream support later in the game, so their calls to sendDataToOutputBuffer() didn't get updated to support buffering while the outputBuffer was full. This fixes it. git-svn-id: https://svn.musicpd.org/mpd/trunk@6873 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/mp4_plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inputPlugins/mp4_plugin.c') diff --git a/src/inputPlugins/mp4_plugin.c b/src/inputPlugins/mp4_plugin.c index 11d634ff2..2426d3b2b 100644 --- a/src/inputPlugins/mp4_plugin.c +++ b/src/inputPlugins/mp4_plugin.c @@ -285,7 +285,7 @@ static int mp4_decode(OutputBuffer * cb, DecoderControl * dc, sampleBuffer += offset * channels * 2; - sendDataToOutputBuffer(cb, NULL, dc, 1, sampleBuffer, + sendDataToOutputBuffer(cb, inStream, dc, 1, sampleBuffer, sampleBufferLen, time, bitRate, NULL); if (dc->stop) { eof = 1; -- cgit v1.2.3