Updated FAAD binary to v2.8.6 (2017-10-10), compiled with ICL 18.0 and MSVC 15.5.
[LameXP.git] / etc / Patches / FAAD-v2.8.6-Win32-Flush-Fix.diff
blob1d6ba660c06d5965e072d899f6939010d8b34e3b
1 frontend/main.c | 9 +++++++--
2 1 file changed, 7 insertions(+), 2 deletions(-)
4 diff --git a/frontend/main.c b/frontend/main.c
5 index d433253..34d4eab 100644
6 --- a/frontend/main.c
7 +++ b/frontend/main.c
8 @@ -80,11 +80,16 @@ static void faad_fprintf(FILE *stream, const char *fmt, ...)
9 if (!quiet)
11 va_start(ap, fmt);
13 vfprintf(stream, fmt, ap);
15 va_end(ap);
18 +#ifdef _WIN32
19 + if (!_isatty(_fileno(stream)))
20 + {
21 + fflush(stream); /*ensure real-time progress output on Win32*/
22 + }
23 +#endif
26 /* FAAD file buffering routines */