[flac-dev] Bug fix and compatibility patches for 1.3.0pre4
Robert Kausch
robert.kausch at freac.org
Sun May 5 16:26:08 PDT 2013
Timothy B. Terriberry wrote:
> Instead I've attached a patch that uses fgetpos/fsetpos. This is
> totally untested (I haven't even checked it compiles), but the idea
> should work.
MSDN says "The pos value is stored in an internal format and is intended
for use only by *fgetpos* and *fsetpos*."
(http://msdn.microsoft.com/en-us/library/70hdhh4t%28v=vs.80%29.aspx), so
I don't think it's a good idea to use it this way even if tests
suggested it works.
I'll write a test program tomorrow to try the fflush+_lseeki64 approach.
Another solution - although a bit ugly - might be to disable buffering
on Windows using setvbuf.
More information about the flac-dev
mailing list