mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
Fix crash when viewing a colored log file
This commit is contained in:
parent
41b34c2e5e
commit
d9fcd38371
1 changed files with 2 additions and 0 deletions
|
@ -265,6 +265,8 @@ class LogLine (list):
|
|||
prefix = non_regex_line.rstrip ()
|
||||
while " " in prefix:
|
||||
prefix = prefix.replace (" ", " ")
|
||||
if prefix.count (" ") < 3:
|
||||
return [0, 0, 0, 0, "", "", 0, "", "", 0]
|
||||
ts_s, pid_s, thread_s = prefix.split (" ")[:-1] # Omits level.
|
||||
ts = parse_time (ts_s)
|
||||
pid = int (pid_s)
|
||||
|
|
Loading…
Reference in a new issue