From 5983060225c507a85d71937ca03240d930e73163 Mon Sep 17 00:00:00 2001 From: Josh Coalson Date: Thu, 13 Sep 2007 15:42:27 +0000 Subject: [PATCH] remove obsolete comment reference to end of stream checking in seek routine --- src/libFLAC/stream_decoder.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c index 981ef164..4d86fdaf 100644 --- a/src/libFLAC/stream_decoder.c +++ b/src/libFLAC/stream_decoder.c @@ -3237,9 +3237,7 @@ FLAC__bool seek_to_absolute_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint /* @@@ TODO: might want to limit pos to some distance * before EOF, to make sure we land before the last frame, * thereby getting a this_frame_sample and so having a better - * estimate. @@@@@@DELETE:this would also mostly (or totally if we could - * be sure to land before the last frame) avoid the - * end-of-stream case we have to check later. + * estimate. */ } @@ -3280,7 +3278,7 @@ FLAC__bool seek_to_absolute_sample_ogg_(FLAC__StreamDecoder *decoder, FLAC__uint } } /* our write callback will change the state when it gets to the target frame */ - else if(!decoder->private_->is_seeking/*@@@@@@ && decoder->protected_->state != FLAC__STREAM_DECODER_END_OF_STREAM*/) { + else if(!decoder->private_->is_seeking) { break; } else {