diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-19 23:48:34 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-19 23:48:34 +0000 |
commit | a81573ef059ac9f006ea438574b1b7ff751ba55d (patch) | |
tree | 84736ed5ad3c296ff9502c407c2ab176023cd90e /src/audiofile_decode.c | |
parent | c1fbcd03f04cfb11401174e40f7d451ee3abfff5 (diff) |
non-blocking seeking, needs some testing! (this is not just for streams
but new code for files seeking as well)
git-svn-id: https://svn.musicpd.org/mpd/trunk@1099 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/audiofile_decode.c')
-rw-r--r-- | src/audiofile_decode.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/audiofile_decode.c b/src/audiofile_decode.c index 38ca591dc..b4a224d19 100644 --- a/src/audiofile_decode.c +++ b/src/audiofile_decode.c @@ -101,7 +101,7 @@ int audiofile_decode(OutputBuffer * cb, DecoderControl * dc) { current = dc->seekWhere * dc->audioFormat.sampleRate; afSeekFrame(af_fp, AF_DEFAULT_TRACK,current); - + dc->seekChunk = cb->end; dc->seek = 0; } @@ -114,7 +114,6 @@ int audiofile_decode(OutputBuffer * cb, DecoderControl * dc) { (float)dc->audioFormat.sampleRate, bitRate); if(dc->stop) break; - else if(dc->seek) continue; } } |