search for: flac__off_t

Displaying 4 results from an estimated 4 matches for "flac__off_t".

2013 Mar 14
2
flac 1.3.0pre2 pre-release
Janne Hyv?rinen wrote: > The patch was made from the published pre2 version. It missed the MinGW > changes that were applied to git version. Patch applied. Thanks. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
2014 Sep 27
0
Patch to add buffering to decoding too
...b/src/flac/decode.c @@ -263,6 +263,23 @@ FLAC__bool DecoderSession_construct(DecoderSession *d, FLAC__bool is_ogg, FLAC__ void DecoderSession_destroy(DecoderSession *d, FLAC__bool error_occurred) { if(0 != d->fout && d->fout != stdout) { +#ifdef _WIN32 + if(!error_occurred) { + FLAC__off_t written_size = ftello(d->fout); + if(written_size > 0) { + HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); + if(fh != INVALID_HANDLE_VALUE) { + if(GetFileType(fh) == FIL...
2014 Sep 26
4
Patch to add buffering to decoding too
Removed buffer size increase. Only tells the filesize to Windows now. On 26.9.2014 14:08, Erik de Castro Lopo wrote: > Martijn van Beurden wrote: > >> Can you please wrap the setvbuf in _WIN32 IFDEFs too? Currently >> memory usage of FLAC decoding is about 1MB, so this patch is >> increasing memory usage tenfold, also for platforms that do not >> need this. It is a
2013 May 04
5
Bug fix and compatibility patches for 1.3.0pre4
...lac-1.3.0pre4/include/share/compat.h flac-1.3.0pre4-patched/include/share/compat.h --- flac-1.3.0pre4/include/share/compat.h 2013-04-07 11:02:38 +0000 +++ flac-1.3.0pre4-patched/include/share/compat.h 2013-05-04 11:59:54 +0000 @@ -50,8 +50,8 @@ #include <sys/types.h> /* for off_t */ #define FLAC__off_t __int64 /* use this instead of off_t to fix the 2 GB limit */ #if !defined __MINGW32__ -#define fseeko _fseeki64 -#define ftello _ftelli64 +#define fseeko(f, p, o) _lseeki64((f)->_file, (p), (o)) +#define ftello(f) _lseeki64((f)->_file, 0, SEEK_CUR) #else /* MinGW */ #if !defined(HAVE_FSEE...