summaryrefslogtreecommitdiffstats
path: root/cmds/stagefright/record.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2009-12-07 09:43:00 -0800
committerAndreas Huber <andih@google.com>2009-12-07 09:43:00 -0800
commitbf697e37550d9e8376089b0b5e498613bede798c (patch)
treeb9e89f19038a23f9b4ad0e667b8ac1a37f8738df /cmds/stagefright/record.cpp
parentf0fb96c352f30b812a4903a1d783a715e1e817bd (diff)
downloadframeworks_av-bf697e37550d9e8376089b0b5e498613bede798c.zip
frameworks_av-bf697e37550d9e8376089b0b5e498613bede798c.tar.gz
frameworks_av-bf697e37550d9e8376089b0b5e498613bede798c.tar.bz2
Change OMXCodec::Create to return an sp<MediaSource> instead of an sp<OMXCodec>, this is more general and does not sacrifice any functionality as the remaining OMXCodec APIs are not meant to be public anyway.
Diffstat (limited to 'cmds/stagefright/record.cpp')
-rw-r--r--cmds/stagefright/record.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/stagefright/record.cpp b/cmds/stagefright/record.cpp
index a31a5c0..2ec0b70 100644
--- a/cmds/stagefright/record.cpp
+++ b/cmds/stagefright/record.cpp
@@ -154,7 +154,7 @@ int main(int argc, char **argv) {
sp<MetaData> meta = source->getFormat();
- sp<OMXCodec> decoder = OMXCodec::Create(
+ sp<MediaSource> decoder = OMXCodec::Create(
client.interface(), meta, false /* createEncoder */, source);
int width, height;
@@ -173,7 +173,7 @@ int main(int argc, char **argv) {
enc_meta->setInt32(kKeyWidth, width);
enc_meta->setInt32(kKeyHeight, height);
- sp<OMXCodec> encoder =
+ sp<MediaSource> encoder =
OMXCodec::Create(
client.interface(), enc_meta, true /* createEncoder */, decoder);