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

Commit b8dc5ab3 authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge "media: correctly return cached size for MediaDataSource" into nyc-dev am: 64389e25

am: a840b0f2

* commit 'a840b0f2':
  media: correctly return cached size for MediaDataSource
parents 4d177111 a840b0f2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -116,7 +116,8 @@ status_t JMediaDataSource::getSize(off64_t* size) {
        return UNKNOWN_ERROR;
    }
    if (mSizeIsCached) {
        return mCachedSize;
        *size = mCachedSize;
        return OK;
    }

    JNIEnv* env = AndroidRuntime::getJNIEnv();