summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/omx/OMX.cpp
diff options
context:
space:
mode:
authorChong Zhang <chz@google.com>2015-05-13 10:21:33 -0700
committerChong Zhang <chz@google.com>2015-05-13 10:49:35 -0700
commit8f469e18c307cb9dc0d16ed9225972aa8be4516f (patch)
treec8e07383c8bdef3b0214def08f6b2d6da7e622f4 /media/libstagefright/omx/OMX.cpp
parent635bc8f90429b2fdcaf7f8d43f7f59bcd0fe951c (diff)
downloadframeworks_av-8f469e18c307cb9dc0d16ed9225972aa8be4516f.zip
frameworks_av-8f469e18c307cb9dc0d16ed9225972aa8be4516f.tar.gz
frameworks_av-8f469e18c307cb9dc0d16ed9225972aa8be4516f.tar.bz2
stagefright: rename usePersistentInputSurface to setInputSurface
and clear persistent surface pointer when MediaRecorder is reset bug: 21045118 bug: 21045402 Change-Id: Ifd0d6deeb969f2252123929541b30b518cecbf9a
Diffstat (limited to 'media/libstagefright/omx/OMX.cpp')
-rw-r--r--media/libstagefright/omx/OMX.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/media/libstagefright/omx/OMX.cpp b/media/libstagefright/omx/OMX.cpp
index 876abb8..a1ceb2e 100644
--- a/media/libstagefright/omx/OMX.cpp
+++ b/media/libstagefright/omx/OMX.cpp
@@ -385,11 +385,10 @@ status_t OMX::createPersistentInputSurface(
bufferProducer, bufferConsumer);
}
-status_t OMX::usePersistentInputSurface(
+status_t OMX::setInputSurface(
node_id node, OMX_U32 port_index,
const sp<IGraphicBufferConsumer> &bufferConsumer) {
- return findInstance(node)->usePersistentInputSurface(
- port_index, bufferConsumer);
+ return findInstance(node)->setInputSurface(port_index, bufferConsumer);
}