[vorbis] ov_open/ov_test weirdness

msmith at labyrinth.net.au msmith at labyrinth.net.au
Mon Dec 9 20:45:53 PST 2002



> 	file = argv[2];

Well, let's make that argv[1] to avoid other problems, and wrong error messages...

> 	ov_clear(&vf);
> 	
> 	fclose(f);

Don't do that. As documented, ov_clear() will close the file for you.

<p>> 	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.

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).

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.



More information about the Vorbis mailing list