summaryrefslogtreecommitdiffstats
path: root/media/libmediaplayerservice/StagefrightRecorder.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/libmediaplayerservice/StagefrightRecorder.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/libmediaplayerservice/StagefrightRecorder.cpp')
-rw-r--r--media/libmediaplayerservice/StagefrightRecorder.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp
index 509a592..e16a4b5 100644
--- a/media/libmediaplayerservice/StagefrightRecorder.cpp
+++ b/media/libmediaplayerservice/StagefrightRecorder.cpp
@@ -243,7 +243,7 @@ status_t StagefrightRecorder::setPreviewSurface(const sp<IGraphicBufferProducer>
return OK;
}
-status_t StagefrightRecorder::usePersistentSurface(
+status_t StagefrightRecorder::setInputSurface(
const sp<IGraphicBufferConsumer>& surface) {
mPersistentSurface = surface;
@@ -1752,6 +1752,7 @@ status_t StagefrightRecorder::stop() {
}
mGraphicBufferProducer.clear();
+ mPersistentSurface.clear();
if (mOutputFd >= 0) {
::close(mOutputFd);