Index: dfvfs/file_io/compressed_stream_io.py |
diff --git a/dfvfs/file_io/compressed_stream_io.py b/dfvfs/file_io/compressed_stream_io.py |
index ad1859b12fde170ad21c8d00ad30c70665873e83..c8d7474952c873446e0a1caaf0c89f1a38fd2749 100644 |
--- a/dfvfs/file_io/compressed_stream_io.py |
+++ b/dfvfs/file_io/compressed_stream_io.py |
@@ -282,9 +282,9 @@ class CompressedStream(file_io.FileIO): |
self._current_offset)) |
if whence == os.SEEK_CUR: |
- offset += self._current_offset |
+ offset += self.get_offset() |
elif whence == os.SEEK_END: |
- offset += self._uncompressed_stream_size |
+ offset += self.get_size() |
elif whence != os.SEEK_SET: |
raise IOError(u'Unsupported whence.') |
if offset < 0: |