unlogger.py: make sure img is always set

pull/19611/head
Willem Melching 5 years ago
parent a4da76d135
commit b09e5227d0
  1. 3
      tools/replay/unlogger.py

@ -107,7 +107,8 @@ class UnloggerWorker(object):
try:
img = self._frame_reader.get(frame_id, pix_fmt="rgb24")
except Exception:
pass
img = None
fr_time = time.time() - s1
if fr_time > 0.05:
print("FRAME(%d) LAG -- %.2f ms" % (frame_id, fr_time*1000.0))

Loading…
Cancel
Save