commit | 76593e19f9aeff5242f006c105a7e77e2cee33fd | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@google.com> | Mon Apr 21 08:49:30 2014 -0700 |
committer | The Android Automerger <android-build@google.com> | Tue Apr 22 15:04:27 2014 -0700 |
tree | 6d4d6ab9ba9036f7301e3e6fbe3e42f720fe53f1 | |
parent | f02d7bf71a41a5258a6266d5fa3b25b55f803aed [diff] |
MTP: Fix getThumbnail The thumbnail size was not being passed to the MTP stack so getThumbnail was returning zero length data. Bug: 13747419 Change-Id: I309d35b5c46ab5f631c0dcb5981f7896bb5a2ed5
diff --git a/media/jni/android_mtp_MtpDatabase.cpp b/media/jni/android_mtp_MtpDatabase.cpp index 067e7a6..f8fb144 100644 --- a/media/jni/android_mtp_MtpDatabase.cpp +++ b/media/jni/android_mtp_MtpDatabase.cpp
@@ -849,6 +849,7 @@ result = malloc(exifdata->size); if (result) { memcpy(result, exifdata->data, exifdata->size); + outThumbSize = exifdata->size; } } exif_data_unref(exifdata);