summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-12-03 15:36:06 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-12-03 15:36:06 -0800
commit988f382308f4d6c743a3d85462184ed077c3a36e (patch)
tree2b24913c00e4fe29bd9d5b15d49c65921674ebf1 /cmds
parent483854820945ae8b4e4512b696cce7da92deed20 (diff)
parentfaf09ba9405ff019b5ca7e2317debe4ff269d4f8 (diff)
downloadframeworks_base-988f382308f4d6c743a3d85462184ed077c3a36e.zip
frameworks_base-988f382308f4d6c743a3d85462184ed077c3a36e.tar.gz
frameworks_base-988f382308f4d6c743a3d85462184ed077c3a36e.tar.bz2
Merge "Prepare for publishing MediaMetadataRetriever as public API"
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp
index 7e7f6d1..07e506a 100644
--- a/cmds/stagefright/stagefright.cpp
+++ b/cmds/stagefright/stagefright.cpp
@@ -681,10 +681,12 @@ int main(int argc, char **argv) {
METADATA_MODE_FRAME_CAPTURE_AND_METADATA_RETRIEVAL),
(status_t)OK);
- sp<IMemory> mem = retriever->captureFrame();
+ sp<IMemory> mem =
+ retriever->getFrameAtTime(-1,
+ MediaSource::ReadOptions::SEEK_PREVIOUS_SYNC);
if (mem != NULL) {
- printf("captureFrame(%s) => OK\n", filename);
+ printf("getFrameAtTime(%s) => OK\n", filename);
VideoFrame *frame = (VideoFrame *)mem->pointer();
@@ -704,7 +706,7 @@ int main(int argc, char **argv) {
if (mem != NULL) {
printf("extractAlbumArt(%s) => OK\n", filename);
} else {
- printf("both captureFrame and extractAlbumArt "
+ printf("both getFrameAtTime and extractAlbumArt "
"failed on file '%s'.\n", filename);
}
}