Loading services/camera/libcameraservice/api1/client2/StreamingProcessor.cpp +7 −4 Original line number Original line Diff line number Diff line Loading @@ -430,10 +430,13 @@ status_t StreamingProcessor::startStream(StreamType type, Mutex::Autolock m(mMutex); Mutex::Autolock m(mMutex); // If a recording stream is being started up, free up any // If a recording stream is being started up and no recording // outstanding buffers left from the previous recording session. // stream is active yet, free up any outstanding buffers left // There should never be any, so if there are, warn about it. // from the previous recording session. There should never be if (isStreamActive(outputStreams, mRecordingStreamId)) { // any, so if there are, warn about it. bool isRecordingStreamIdle = !isStreamActive(mActiveStreamIds, mRecordingStreamId); bool startRecordingStream = isStreamActive(outputStreams, mRecordingStreamId); if (startRecordingStream && isRecordingStreamIdle) { releaseAllRecordingFramesLocked(); releaseAllRecordingFramesLocked(); } } Loading Loading
services/camera/libcameraservice/api1/client2/StreamingProcessor.cpp +7 −4 Original line number Original line Diff line number Diff line Loading @@ -430,10 +430,13 @@ status_t StreamingProcessor::startStream(StreamType type, Mutex::Autolock m(mMutex); Mutex::Autolock m(mMutex); // If a recording stream is being started up, free up any // If a recording stream is being started up and no recording // outstanding buffers left from the previous recording session. // stream is active yet, free up any outstanding buffers left // There should never be any, so if there are, warn about it. // from the previous recording session. There should never be if (isStreamActive(outputStreams, mRecordingStreamId)) { // any, so if there are, warn about it. bool isRecordingStreamIdle = !isStreamActive(mActiveStreamIds, mRecordingStreamId); bool startRecordingStream = isStreamActive(outputStreams, mRecordingStreamId); if (startRecordingStream && isRecordingStreamIdle) { releaseAllRecordingFramesLocked(); releaseAllRecordingFramesLocked(); } } Loading