aboutsummaryrefslogtreecommitdiffstats
path: root/src/outputBuffer.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-28 02:09:37 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-28 02:09:37 +0000
commite93229bf49d5f5647f67241626e1a8becae7b65d (patch)
tree211d38d680e89639c85783ce7cbef57e0b644e7f /src/outputBuffer.c
parent82f6f5b7a30d7e64c3671797184381cc0ab0138f (diff)
downloadmpd-e93229bf49d5f5647f67241626e1a8becae7b65d.tar.gz
mpd-e93229bf49d5f5647f67241626e1a8becae7b65d.tar.xz
mpd-e93229bf49d5f5647f67241626e1a8becae7b65d.zip
fix seeking more than once when paused, by returning immediatly on dc->seek
in sendToOutputBuffer git-svn-id: https://svn.musicpd.org/mpd/trunk@1216 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/outputBuffer.c')
-rw-r--r--src/outputBuffer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/outputBuffer.c b/src/outputBuffer.c
index f1ea86925..b5ccaff52 100644
--- a/src/outputBuffer.c
+++ b/src/outputBuffer.c
@@ -74,7 +74,8 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
while(datalen) {
if(currentChunk != cb->end) {
- while(cb->begin==cb->end && cb->wrap && !dc->stop)
+ while(cb->begin==cb->end && cb->wrap && !dc->stop &&
+ !dc->seek)
{
if(!inStream ||
bufferInputStream(inStream) <= 0)
@@ -83,6 +84,7 @@ int sendDataToOutputBuffer(OutputBuffer * cb, InputStream * inStream,
}
}
if(dc->stop) return OUTPUT_BUFFER_DC_STOP;
+ if(dc->seek) return OUTPUT_BUFFER_DC_SEEK;
currentChunk = cb->end;
cb->chunkSize[currentChunk] = 0;