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

Commit 2505b200 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

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

Change-Id: I59abff01d593647048fe42e7b0dd546f9a68ebdd
parents d8cc73d9 a7ad6e91
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;
}