[Flac-dev] problem with seek_absolute in libFLAC++

Josh Coalson xflac at yahoo.com
Thu Jun 20 22:26:01 PDT 2002


--- David Collett <jg at webone.com.au> wrote:
> Nevermind, I have discovered the problem(not really a problem).
> I had called:
> set_metadata_ignore_all();
> because I didnt actually need to use the metadata in my application.
> But it seems that with this option set, "total_samples" is not set 
> correctly after calling init().
> 
> Upon further debugging, I discovered that the test "sample < 
> total_samples" was what is failing in the seek routine. By removing
> the 
> call to set_metadata_ignore_all() the problem has disapeared.
> 
> Sorry this is a rushed explanation, I have to go now and wont be on a
> PC 
> until saturday, better this that you thinking there is a real
> problem!

OK, I committed the fix... basically when you ignored all
metadata it caused the seekable stream decoder to not get
the STREAMINFO or SEEKTABLE blocks.

Josh


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com




More information about the Flac-dev mailing list