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

Commit 8c9d980a 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: 2505b200

* commit '2505b200':
  ExifInterface: Set mPosition in AssetStream with proper values

Change-Id: I10f3e7caab86c808836f589707c9d830812c4fc4
parents 1c191304 2505b200
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;
}