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

Commit f78c984e authored by Lajos Molnar's avatar Lajos Molnar
Browse files

media: correctly return cached size for MediaDataSource

Bug: 27431229
Change-Id: I884e43960789c139b48964deba8f56b3bc3ba590
parent a1fd1432
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -116,7 +116,8 @@ status_t JMediaDataSource::getSize(off64_t* size) {
        return UNKNOWN_ERROR;
        return UNKNOWN_ERROR;
    }
    }
    if (mSizeIsCached) {
    if (mSizeIsCached) {
        return mCachedSize;
        *size = mCachedSize;
        return OK;
    }
    }


    JNIEnv* env = AndroidRuntime::getJNIEnv();
    JNIEnv* env = AndroidRuntime::getJNIEnv();