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

Commit 7c7fef15 authored by Lajos Molnar's avatar Lajos Molnar
Browse files

media: correctly return cached size for MediaDataSource

Bug: 27431229
Change-Id: I884e43960789c139b48964deba8f56b3bc3ba590
parent 99a4966e
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();