Displaying 4 results from an estimated 4 matches for "written_size".
Did you mean:
write_size
2014 Sep 27
0
Patch to add buffering to decoding too
...ecode.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) == FILE_TYPE_DISK)...
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
2016 Feb 09
2
Compilation failure using mingw-w64 and gcc-5.3.0
...if(GetFileType(fh) == FILE_TYPE_DISK) {
^
decode.c:273:7: error: unknown type name 'LARGE_INTEGER'
LARGE_INTEGER size;
^
decode.c:274:11: error: request for member 'QuadPart' in something not a
structure or union
size.QuadPart = written_size;
^
decode.c:275:10: warning: implicit declaration of function
'SetFilePointerEx' [-Wimplicit-function-declaration]
if(SetFilePointerEx(fh, size, NULL, FILE_CURRENT)) /* correct the
file size */
^
decode.c:275:7: warning: nested extern declaration of 'SetFileP...
2016 Feb 08
2
Compilation failure using mingw-w64 and gcc-5.3.0
Hello,
Upon compiling the flac tree today, after many successful compilations over
the last few weeks, a new error is appearing before compilation bails out.
This is a cross-compilation using gcc-5.3.0 running on GNU/Linux, with the
objects being built for a mingw-w64-x86_64 host.
Among other things, the compiler is looking for windows_unicode_filenames.h
but it isn't there. Also, I'm