diff options
author | Mike Lockwood <lockwood@google.com> | 2014-04-21 08:49:30 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2014-04-21 08:54:45 -0700 |
commit | c436772120ceea1d6e3f5b388ef068c99c8bb7d6 (patch) | |
tree | f9cd0d9aad8b56d79ba50da510658ffc99de1da3 /media/jni | |
parent | cf677a37fb4560058fe29ebcac97f2c02bd55064 (diff) | |
download | frameworks_base-c436772120ceea1d6e3f5b388ef068c99c8bb7d6.zip frameworks_base-c436772120ceea1d6e3f5b388ef068c99c8bb7d6.tar.gz frameworks_base-c436772120ceea1d6e3f5b388ef068c99c8bb7d6.tar.bz2 |
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
Diffstat (limited to 'media/jni')
-rw-r--r-- | media/jni/android_mtp_MtpDatabase.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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 @@ void* MyMtpDatabase::getThumbnail(MtpObjectHandle handle, size_t& outThumbSize) result = malloc(exifdata->size); if (result) { memcpy(result, exifdata->data, exifdata->size); + outThumbSize = exifdata->size; } } exif_data_unref(exifdata); |