mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05: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.__file_size = self.__fileobj.tell ()
|
||||||
self.__fileobj.seek (0)
|
self.__fileobj.seek (0)
|
||||||
|
|
||||||
from array import array
|
self.offsets = []
|
||||||
offsets = array ("L")
|
|
||||||
try:
|
|
||||||
offsets.append (self.__file_size)
|
|
||||||
except OverflowError:
|
|
||||||
offsets = []
|
|
||||||
else:
|
|
||||||
del offsets[0]
|
|
||||||
self.offsets = offsets
|
|
||||||
|
|
||||||
self.levels = [] # FIXME
|
self.levels = [] # FIXME
|
||||||
|
|
||||||
def start_loading (self):
|
def start_loading (self):
|
||||||
|
|
Loading…
Reference in a new issue