[vorbis] ov_open/ov_test weirdness
Thomas Fjellstrom
tfjellstrom at telusplanet.net
Mon Dec 9 07:02:54 PST 2002
On December 9, 2002 07:50 pm, Monty wrote:
> > Is there a reason for that? I mean, why doen't it take a filename
> > instead?
>
> Filenames are not as portable as you think.
Opps.. You are right. :)
> > Also, do you know why ov_test is identical to ov_open?
>
> It isn't. But in your code, you're already in the weeds at that
> point. After heap corruption, all bets are off.
>
Yeah. I suppose. though, I had my ogg plugin implemented so the is_type
'method' ov_test's the file, and leaves it open (no ov_clear). then when the
open 'method' is called I ov_test_open'ed it if its allredy open, and
ov_test_open didn't crash, it just returned that it was already opened.. And
ov_read worked fine. heh. But since my plugin is no longer leaving the file
open like that It doesn't matter.
Thanks again.
--
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