mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 22:40:30 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user