Release the critial section between recursive calls in FrameBuffer::NextFrame.

This is a revert of https://codereview.webrtc.org/2749563002 and a fix to not
keep the lock in between recursive calls.

BUG=webrtc:7331

Review-Url: https://codereview.webrtc.org/2750033002
Cr-Commit-Position: refs/heads/master@{#17256}
This commit is contained in:
philipel
2017-03-15 08:10:08 -07:00
committed by Commit bot
parent 5b3e49a29e
commit 29f730ebd8
2 changed files with 37 additions and 46 deletions

View File

@ -159,7 +159,7 @@ class FrameBuffer {
FrameMap::iterator next_frame_it_ GUARDED_BY(crit_);
int num_frames_history_ GUARDED_BY(crit_);
int num_frames_buffered_ GUARDED_BY(crit_);
volatile int stopped_;
bool stopped_ GUARDED_BY(crit_);
VCMVideoProtection protection_mode_ GUARDED_BY(crit_);
VCMReceiveStatisticsCallback* const stats_callback_;