commit | f78c984e05b70b473b9246beee989d3b4799d37f | [log] [tgz] |
---|---|---|
author | Lajos Molnar <lajos@google.com> | Wed Mar 02 17:03:19 2016 -0800 |
committer | Lajos Molnar <lajos@google.com> | Thu Mar 03 08:05:41 2016 -0800 |
tree | 58bf45d2b4a0f374368b9dcbcd49288800d1a81d | |
parent | a1fd14328e990bc23dc5b8447bfe9839a3c7f137 [diff] |
media: correctly return cached size for MediaDataSource Bug: 27431229 Change-Id: I884e43960789c139b48964deba8f56b3bc3ba590
diff --git a/media/jni/android_media_MediaDataSource.cpp b/media/jni/android_media_MediaDataSource.cpp index 025133f..ecd10c7 100644 --- a/media/jni/android_media_MediaDataSource.cpp +++ b/media/jni/android_media_MediaDataSource.cpp
@@ -116,7 +116,8 @@ return UNKNOWN_ERROR; } if (mSizeIsCached) { - return mCachedSize; + *size = mCachedSize; + return OK; } JNIEnv* env = AndroidRuntime::getJNIEnv();