gst_debug_log_default() outputs invalid ANSI escape sequence for `pidcolor`
I just noticed this in 1.14.5, but it is also present in master. gst_debug_log_default()
says:
g_sprintf (pidcolor, "\033[3%1dm", pid % 6 + 31);
This sets pidcolor
to strings like \033[334m
, when it should be \033[34m
. There are too many 3
s.
I suggest changing that line to:
g_sprintf (pidcolor, "\033[%2dm", pid % 6 + 31);
or to:
g_sprintf (pidcolor, "\033[3%1dm", pid % 6 + 1);
Either should do the job!
I am happy to submit an MR if you would like. Thanks for considering this report!