mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 06:46:38 +00:00
Use mmap in a portable way
This commit is contained in:
parent
984549d45a
commit
7dcd3db661
1 changed files with 1 additions and 1 deletions
|
@ -323,7 +323,7 @@ class LogFile (Producer):
|
|||
|
||||
self.path = os.path.normpath (os.path.abspath (filename))
|
||||
self.__real_fileobj = file (filename, "rb")
|
||||
self.fileobj = mmap.mmap (self.__real_fileobj.fileno (), 0, prot = mmap.PROT_READ)
|
||||
self.fileobj = mmap.mmap (self.__real_fileobj.fileno (), 0, access = mmap.ACCESS_READ)
|
||||
self.line_cache = LineCache (self.fileobj, dispatcher)
|
||||
self.line_cache.consumers.append (self)
|
||||
|
||||
|
|
Loading…
Reference in a new issue