fftools/ffprobe: Disable stderr buffering on Windows

An identical call exists in ffmpeg.c

With POSIX/glibc, stderr is already unbuffered (or line-buffered when
a terminal is connected), but not in case of MSVCRT.
Explicitly calling setvbuf() like in this commit, makes the Windows
runtime behave like POSIX, giving the same “print immediately” behavior.

Signed-off-by: softworkz <softworkz@hotmail.com>
This commit is contained in:
softworkz
2025-04-19 23:34:29 +02:00
parent b322640b4f
commit 1dbc5675c1

View File

@ -3081,6 +3081,8 @@ int main(int argc, char **argv)
init_dynload();
setvbuf(stderr, NULL, _IONBF, 0); /* win32 runtime needs this */
av_log_set_flags(AV_LOG_SKIP_REPEATED);
options = real_options;