| Index: content/browser/renderer_host/media/video_capture_buffer_pool.cc
|
| diff --git a/content/browser/renderer_host/media/video_capture_buffer_pool.cc b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
|
| index 831c060eabc27eba65b5a8f02883c8a762cb8eb7..91c660a64c1b6a2f88c602e739df52a29989491d 100644
|
| --- a/content/browser/renderer_host/media/video_capture_buffer_pool.cc
|
| +++ b/content/browser/renderer_host/media/video_capture_buffer_pool.cc
|
| @@ -374,7 +374,9 @@ int VideoCaptureBufferPool::ResurrectLastForProducer(
|
| it->second->pixel_format() == format &&
|
| it->second->storage_type() == storage) {
|
| it->second->set_held_by_producer(true);
|
| - return last_relinquished_buffer_id_;
|
| + const int resurrected_buffer_id = last_relinquished_buffer_id_;
|
| + last_relinquished_buffer_id_ = kInvalidId;
|
| + return resurrected_buffer_id;
|
| }
|
|
|
| return kInvalidId;
|
|
|