summaryrefslogtreecommitdiff
path: root/GstDebugViewer
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2007-11-21 14:21:38 +0200
committerRené Stadler <mail@renestadler.de>2007-11-21 14:21:38 +0200
commit026d3689189777f718fbceac6399437c11a5bff0 (patch)
treedad71641a821d55d4c57048214c96691789de9ed /GstDebugViewer
parent9a1420e7010990207286c456b9b64a6693004fb5 (diff)
Ditch arrays for offset storage again
Diffstat (limited to 'GstDebugViewer')
-rw-r--r--GstDebugViewer/Data.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/GstDebugViewer/Data.py b/GstDebugViewer/Data.py
index cb27e24..c837e00 100644
--- a/GstDebugViewer/Data.py
+++ b/GstDebugViewer/Data.py
@@ -178,16 +178,7 @@ class LineCache (Producer):
self.__file_size = self.__fileobj.tell ()
self.__fileobj.seek (0)
- from array import array
- offsets = array ("L")
- try:
- offsets.append (self.__file_size)
- except OverflowError:
- offsets = []
- else:
- del offsets[0]
- self.offsets = offsets
-
+ self.offsets = []
self.levels = [] # FIXME
def start_loading (self):