aboutsummaryrefslogtreecommitdiffstats
path: root/src/flac_decode.c
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-03-22 02:44:22 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-03-22 02:44:22 +0000
commit145f0b62d26974c5e15ad65c902045fe671a9d05 (patch)
treef86617eeae1a30f1e97a35507b93756a99cf0b29 /src/flac_decode.c
parent4c1eb9225d5a741e1234d48eb38a8df3da908259 (diff)
downloadmpd-145f0b62d26974c5e15ad65c902045fe671a9d05.tar.gz
mpd-145f0b62d26974c5e15ad65c902045fe671a9d05.tar.xz
mpd-145f0b62d26974c5e15ad65c902045fe671a9d05.zip
aac decoding!
need to work on seeking for AAC also, don't reset cb->begin on seek to 0, instead just set cb->end=cb->begin, works much better for disabling seeking (like ADIF AAC's) git-svn-id: https://svn.musicpd.org/mpd/trunk@356 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/flac_decode.c')
-rw-r--r--src/flac_decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flac_decode.c b/src/flac_decode.c
index a684e5091..29f7dbdaa 100644
--- a/src/flac_decode.c
+++ b/src/flac_decode.c
@@ -104,7 +104,7 @@ void flacPlayFile(char *file, Buffer * cb, AudioFormat * af,
if(dc->seek) {
FLAC__uint64 sampleToSeek = dc->seekWhere*
af->sampleRate+0.5;
- cb->end = 0;
+ cb->end = cb->begin;
cb->wrap = 0;
if(FLAC__file_decoder_seek_absolute(flacDec,
sampleToSeek))