summaryrefslogtreecommitdiffstats
path: root/media/java
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-12-03 17:00:48 -0800
committerJames Dong <jdong@google.com>2010-12-03 17:14:25 -0800
commitf6bd1ea0c79516a5ef3c0c463761deec1a80e419 (patch)
treecef6c2c8920438a9e3e3f4917bffd1cf30200214 /media/java
parent7c2bacf6a904f470a7e850841c306065049feedc (diff)
downloadframeworks_base-f6bd1ea0c79516a5ef3c0c463761deec1a80e419.zip
frameworks_base-f6bd1ea0c79516a5ef3c0c463761deec1a80e419.tar.gz
frameworks_base-f6bd1ea0c79516a5ef3c0c463761deec1a80e419.tar.bz2
Replace MediaMetadataRetriever.captureFrame() with MediaMetadataRetriever.getFrameAtTime()
as part of the preparation for publishing MediaMetadataRetriever as public Java API bug - 2433195 Change-Id: I6e8a771347e3d89bfe359ae403ebfe3205ea6313
Diffstat (limited to 'media/java')
-rw-r--r--media/java/android/media/ThumbnailUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/java/android/media/ThumbnailUtils.java b/media/java/android/media/ThumbnailUtils.java
index 3d85e31..0edd449 100644
--- a/media/java/android/media/ThumbnailUtils.java
+++ b/media/java/android/media/ThumbnailUtils.java
@@ -148,7 +148,7 @@ public class ThumbnailUtils {
try {
retriever.setMode(MediaMetadataRetriever.MODE_CAPTURE_FRAME_ONLY);
retriever.setDataSource(filePath);
- bitmap = retriever.captureFrame();
+ bitmap = retriever.getFrameAtTime(-1);
} catch (IllegalArgumentException ex) {
// Assume this is a corrupt video file
} catch (RuntimeException ex) {