[vorbis] ov_open/ov_test weirdness
Thomas Fjellstrom
tfjellstrom at telusplanet.net
Mon Dec 9 09:07:23 PST 2002
On December 9, 2002 09:45 pm, msmith at labyrinth.net.au wrote:
> > file = argv[2];
>
> Well, let's make that argv[1] to avoid other problems, and wrong error
> messages...
Just a typo ;)
> > ov_clear(&vf);
> >
> > fclose(f);
>
> Don't do that. As documented, ov_clear() will close the file for you.
>
> > ov_clear(&vf);
> >
> > fclose(f);
>
> As above.
>
> > it just doesn't work. Ok1 is printed. But I get OV_ENOTVORBIS the second
> > time, everytime. Even if I use ov_test the first time.. Oh and ov_test
> > acts the same as ov_open, I don't have to call ov_test_open (in fact
> > ov_test_open fails...)
>
> Not sure what the problem is - whilst you have a series of obvious errors,
> none of them look like they should cause this sort of failure. Anyway, the
> first stage is to fix the errors.
done.
> Failure of ov_test_open() is rather strange. ov_test() also will NEVER (it
> cannot) leave the OggVorbis_File struct in a state where it's usable (i.e.
> you can do decode).
It did. :) But that might be due to the errors above. Nice heap corruption :)
> Michael
>
> --- >8 ----
> List archives: http://www.xiph.org/archives/
> Ogg project homepage: http://www.xiph.org/ogg/
> To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
> containing only the word 'unsubscribe' in the body. No subject is needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
--
Thomas Fjellstrom
tfjellstrom at telusplanet.net
http://strangesoft.net
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Vorbis
mailing list