diff options
author | Chong Zhang <chz@google.com> | 2015-05-13 10:21:33 -0700 |
---|---|---|
committer | Chong Zhang <chz@google.com> | 2015-05-13 10:49:35 -0700 |
commit | 8f469e18c307cb9dc0d16ed9225972aa8be4516f (patch) | |
tree | c8e07383c8bdef3b0214def08f6b2d6da7e622f4 /media/libstagefright/OMXClient.cpp | |
parent | 635bc8f90429b2fdcaf7f8d43f7f59bcd0fe951c (diff) | |
download | frameworks_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/OMXClient.cpp')
-rw-r--r-- | media/libstagefright/OMXClient.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/media/libstagefright/OMXClient.cpp b/media/libstagefright/OMXClient.cpp index 44695ce..f1ebea2 100644 --- a/media/libstagefright/OMXClient.cpp +++ b/media/libstagefright/OMXClient.cpp @@ -108,7 +108,7 @@ struct MuxOMX : public IOMX { sp<IGraphicBufferProducer> *bufferProducer, sp<IGraphicBufferConsumer> *bufferConsumer); - virtual status_t usePersistentInputSurface( + virtual status_t setInputSurface( node_id node, OMX_U32 port_index, const sp<IGraphicBufferConsumer> &bufferConsumer); @@ -356,11 +356,10 @@ status_t MuxOMX::createPersistentInputSurface( bufferProducer, bufferConsumer); } -status_t MuxOMX::usePersistentInputSurface( +status_t MuxOMX::setInputSurface( node_id node, OMX_U32 port_index, const sp<IGraphicBufferConsumer> &bufferConsumer) { - return getOMX(node)->usePersistentInputSurface( - node, port_index, bufferConsumer); + return getOMX(node)->setInputSurface(node, port_index, bufferConsumer); } status_t MuxOMX::signalEndOfInputStream(node_id node) { |