From 8f469e18c307cb9dc0d16ed9225972aa8be4516f Mon Sep 17 00:00:00 2001 From: Chong Zhang Date: Wed, 13 May 2015 10:21:33 -0700 Subject: stagefright: rename usePersistentInputSurface to setInputSurface and clear persistent surface pointer when MediaRecorder is reset bug: 21045118 bug: 21045402 Change-Id: Ifd0d6deeb969f2252123929541b30b518cecbf9a --- media/libmediaplayerservice/StagefrightRecorder.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'media/libmediaplayerservice/StagefrightRecorder.cpp') 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 return OK; } -status_t StagefrightRecorder::usePersistentSurface( +status_t StagefrightRecorder::setInputSurface( const sp& surface) { mPersistentSurface = surface; @@ -1752,6 +1752,7 @@ status_t StagefrightRecorder::stop() { } mGraphicBufferProducer.clear(); + mPersistentSurface.clear(); if (mOutputFd >= 0) { ::close(mOutputFd); -- cgit v1.1