Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f7a63fd authored by Sungsoo Lim's avatar Sungsoo Lim Committed by android-build-merger
Browse files

Merge "ExifInterface: Set mPosition in AssetStream with proper values" into nyc-dev am: a7ad6e91

am: 9de55793

* commit '9de55793':
  ExifInterface: Set mPosition in AssetStream with proper values

Change-Id: I877a978a7cba5500fd0ff5e74e13f6f76e1a9c01
parents 1c191304 9de55793
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@
namespace android {

AssetStream::AssetStream(SkStream* stream)
    : mStream(stream) {
    : mStream(stream), mPosition(0) {
}

AssetStream::~AssetStream() {
@@ -48,7 +48,7 @@ piex::Error AssetStream::GetData(

    // Read bytes.
    size_t size = mStream->read((void*)data, length);
    mPosition += size;
    mPosition = offset + size;

    return size == length ? piex::Error::kOk : piex::Error::kFail;
}