| Index: webrtc/common_video/video_frame.cc
|
| diff --git a/webrtc/common_video/video_frame.cc b/webrtc/common_video/video_frame.cc
|
| index 28e463112c87434690e3ded3c45069be834def6c..3f817c0e8f0946e9e6b7acadc648042e6bf2d355 100644
|
| --- a/webrtc/common_video/video_frame.cc
|
| +++ b/webrtc/common_video/video_frame.cc
|
| @@ -65,7 +65,7 @@ void VideoFrame::CreateEmptyFrame(int width,
|
| rotation_ = kVideoRotation_0;
|
|
|
| // Check if it's safe to reuse allocation.
|
| - if (video_frame_buffer_ && video_frame_buffer_->HasOneRef() &&
|
| + if (video_frame_buffer_ && video_frame_buffer_->IsMutable() &&
|
| !video_frame_buffer_->native_handle() &&
|
| width == video_frame_buffer_->width() &&
|
| height == video_frame_buffer_->height() && stride_y == stride(kYPlane) &&
|
|
|