[libbluray-devel] Fix for logging failure on Win32 platform

tourettes tourettesmp at gmail.com
Thu Mar 28 15:33:35 CET 2013


On 27.3.2013 10:52, Petri Hintukainen wrote:
>> Actually it is not a good idea to use 4096 as the stream buffer size
>> since it will cause
>> flushing of log file to happen too rarely to be usable.
>>
>> As attached a new version of the patch that changes the log stream
>> buffer size to 2.
> I don't think line buffering or any other buffering is needed here,
> logging code already uses line buffer internally and writes only
> complete lines. Buffering could be turned off with
>
> setvbuf(logfile, NULL, _IONBF, 0);
No buffering (_IONBF) would work as well for MS C runtime.



More information about the libbluray-devel mailing list