Displaying 1 result from an estimated 1 matches for "offsettest".
Did you mean:
offsetter
2004 Oct 14
3
patch for non-seekable streams on Windows
I've been trying to get oggdec to work with input streamed in through a
pipe or a socket. This seems to work on Linux and OS X, but not on
Windows. I've found that code in vorbisfile.c tests the input stream for
seekability by invoking fseek in the following way:
int offsettest=(f?callbacks.seek_func(f,0,SEEK_CUR) : -1);
Unfortunately, fseek succeeds for a socket on Windows (even though it's
not seekable) with the parameters specified. A more definitive test (and
one that does work on Windows) is to attempt to seek to the end. I've
attached a patch to vorbisfi...