debug-viewer; Store thread as long instead of int
authorOlivier Crête <olivier.crete@collabora.com>
Thu, 8 Feb 2018 15:20:55 +0000 (08:20 -0700)
committerOlivier Crête <olivier.crete@collabora.com>
Thu, 8 Feb 2018 15:20:55 +0000 (08:20 -0700)
On 64-bit platforms, the thread id can be over 2^32 so use a long
to handle it.

debug-viewer/GstDebugViewer/Data.py

index 567c018..f6873bf 100644 (file)
@@ -392,7 +392,7 @@ class LogLine (list):
         # PID.
         line[1] = int(line[1])
         # Thread.
-        line[2] = int(line[2], 16)
+        line[2] = long(line[2], 16)
         # Level (this is handled in LineCache).
         line[3] = 0
         # Line.