diff --git a/AUTHORS b/AUTHORS index 4d7ba0563f..691601652e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -9,6 +9,7 @@ Jie Mao Luke Weber Martin Storsjo Pali Rohar +Paul Kapustin Rafael Lopez Diez Robert Nagy Silviu Caragea diff --git a/webrtc/modules/utility/source/video_frames_queue.cc b/webrtc/modules/utility/source/video_frames_queue.cc index fbcbd2c13d..63afbe9b7f 100644 --- a/webrtc/modules/utility/source/video_frames_queue.cc +++ b/webrtc/modules/utility/source/video_frames_queue.cc @@ -80,8 +80,10 @@ I420VideoFrame* VideoFramesQueue::FrameToRecord() { // List is traversed beginning to end. If ptrRenderFrame is not // NULL it must be the first, and thus oldest, VideoFrame in the // queue. It can be recycled. - ReturnFrame(ptrRenderFrame); - iter = _incomingFrames.erase(iter); + if (ptrRenderFrame) { + ReturnFrame(ptrRenderFrame); + _incomingFrames.pop_front(); + } ptrRenderFrame = ptrOldestFrameInList; } else { // All VideoFrames following this one will be even newer. No match