Fix data race for VideoFrame::timestamp from black frames in MediaStreamVideoTrack
commit19d6a0d430c6e11a00debe9c51262e1a499af015
authormagjed <magjed@chromium.org>
Mon, 4 May 2015 10:12:40 +0000 (4 03:12 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 4 May 2015 10:13:15 +0000 (4 10:13 +0000)
tree38d269e8731b956ee762c70c9ecccc394504568b
parentf584325dca1a14c8b7c85666667c3b924e6b31c0
Fix data race for VideoFrame::timestamp from black frames in MediaStreamVideoTrack

MediaStreamVideoTrack::FrameDeliverer::GetBlackFrame previously returned the same frame over and over again, but updated the timestamp destructively, which caused data races for clients that held on to the previous frame.

BUG=482970

Review URL: https://codereview.chromium.org/1125633003

Cr-Commit-Position: refs/heads/master@{#328109}
content/renderer/media/media_stream_video_track.cc