rzipstream_tell: Fix missing tell for non compressed files (#14313)

The tell call would always return the compressed stream position.
This commit is contained in:
Filipe Azevedo 2022-08-15 17:48:09 +02:00 committed by GitHub
parent cb82725cc2
commit e8668a5c71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1023,7 +1023,9 @@ int64_t rzipstream_tell(rzipstream_t *stream)
if (!stream)
return -1;
return (int64_t)stream->virtual_ptr;
if (stream->is_compressed)
return (int64_t)stream->virtual_ptr;
return filestream_tell(stream->file);
}
/* Returns true if specified RZIP file contains