mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
Ditch arrays for offset storage again
This commit is contained in:
parent
3b5745c412
commit
e3410d3305
1 changed files with 1 additions and 10 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue