diff options
author | Chong Zhang <chz@google.com> | 2015-05-13 19:55:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-13 19:55:58 +0000 |
commit | 55c3bd0cacfb6e1601cd03fdba814be544a34326 (patch) | |
tree | 24ea9b5be6334e24c10cb1846778e3ad687e8c9f /media/libstagefright/MediaCodec.cpp | |
parent | 2e69a987ea5a6430c9804e1b59faa0e6ca45a43e (diff) | |
parent | 8f469e18c307cb9dc0d16ed9225972aa8be4516f (diff) | |
download | frameworks_av-55c3bd0cacfb6e1601cd03fdba814be544a34326.zip frameworks_av-55c3bd0cacfb6e1601cd03fdba814be544a34326.tar.gz frameworks_av-55c3bd0cacfb6e1601cd03fdba814be544a34326.tar.bz2 |
Merge "stagefright: rename usePersistentInputSurface to setInputSurface" into mnc-dev
Diffstat (limited to 'media/libstagefright/MediaCodec.cpp')
-rw-r--r-- | media/libstagefright/MediaCodec.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp index 4080391..46c154d 100644 --- a/media/libstagefright/MediaCodec.cpp +++ b/media/libstagefright/MediaCodec.cpp @@ -554,9 +554,9 @@ status_t MediaCodec::configure( return err; } -status_t MediaCodec::usePersistentInputSurface( +status_t MediaCodec::setInputSurface( const sp<PersistentSurface> &surface) { - sp<AMessage> msg = new AMessage(kWhatUsePersistentInputSurface, this); + sp<AMessage> msg = new AMessage(kWhatSetInputSurface, this); msg->setObject("input-surface", surface.get()); sp<AMessage> response; @@ -1290,7 +1290,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { case CodecBase::kWhatInputSurfaceAccepted: { - // response to initiateUsePersistentInputSurface() + // response to initiateSetInputSurface() status_t err = NO_ERROR; sp<AMessage> response = new AMessage(); if (!msg->findInt32("err", &err)) { @@ -1776,7 +1776,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { } case kWhatCreateInputSurface: - case kWhatUsePersistentInputSurface: + case kWhatSetInputSurface: { sp<AReplyToken> replyID; CHECK(msg->senderAwaitsResponse(&replyID)); @@ -1794,7 +1794,7 @@ void MediaCodec::onMessageReceived(const sp<AMessage> &msg) { sp<RefBase> obj; CHECK(msg->findObject("input-surface", &obj)); - mCodec->initiateUsePersistentInputSurface( + mCodec->initiateSetInputSurface( static_cast<PersistentSurface *>(obj.get())); } break; |