diff options
author | magjed@webrtc.org <magjed@webrtc.org> | 2015-03-02 10:03:47 +0000 |
---|---|---|
committer | magjed@webrtc.org <magjed@webrtc.org> | 2015-03-02 10:04:19 +0000 |
commit | 50b229509187cf63b5c80ff5ae55694f0e84ee23 (patch) | |
tree | 44c5628558f425a26bc4e0fb4ee0c25fb6d16c5c /talk/media/webrtc/webrtcvideoframe.h | |
parent | 24485eb3cc7e2729613d9fa413e476ef91977871 (diff) | |
download | webrtc-50b229509187cf63b5c80ff5ae55694f0e84ee23.tar.gz |
cricket::VideoFrameFactory: Don't overwrite frames in use
VideoFrameFactory has a single frame buffer that is used when scaling frames. If the previous frame is still in use, we need to allocate a new frame.
BUG=4347
R=perkj@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/36359004
Cr-Commit-Position: refs/heads/master@{#8549}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8549 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'talk/media/webrtc/webrtcvideoframe.h')
-rw-r--r-- | talk/media/webrtc/webrtcvideoframe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/talk/media/webrtc/webrtcvideoframe.h b/talk/media/webrtc/webrtcvideoframe.h index 4de12b224c..2e34d67ee9 100644 --- a/talk/media/webrtc/webrtcvideoframe.h +++ b/talk/media/webrtc/webrtcvideoframe.h @@ -137,6 +137,7 @@ class WebRtcVideoFrame : public VideoFrame { } virtual VideoFrame* Copy() const; + virtual bool IsExclusive() const; virtual bool MakeExclusive(); virtual size_t ConvertToRgbBuffer(uint32 to_fourcc, uint8* buffer, size_t size, int stride_rgb) const; |