improved UG FFmpeg logger

do not prefix messages not starting on new line by timestamps, eg.:

    $ uv -s embedded -t testcard -d file:n=/dev/null -V
    [1698853041.393] [lavc]   Stream #0:0[1698853041.393] : Video: rawvideo, 1 reference frame (UYVY / 0x59565955), uyvy422, 1920x1080 (0x0), q=2-31, 829440 kb/s[1698853041.393] , [1698853041.393] 25 tbn[1698853041.393]

Flush the output only on NL and before it store it in internal
thread-local buffer.

Locking was removed as static data are now thread-local.

this improves 808b3de3
This commit is contained in:
Martin Pulec
2023-11-01 16:37:52 +01:00
parent 40d2c66903
commit fea0d10f67
3 changed files with 13 additions and 14 deletions

View File

@@ -87,7 +87,8 @@ static void _dprintf(const char *format, ...)
#endif /* WIN32 */
}
void log_vprintf(int level, const char *format, va_list ap)
static void
log_vprintf(int level, const char *format, va_list ap)
{
va_list aq;