VideoRenderCallback::RenderFrame: Make I420VideoFrame& ref const.
RenderFrame should not modify the I420VideoFrame (and we don't). This CL changes the declaration of RenderFrame from: int32_t RenderFrame(const uint32_t streamId, I420VideoFrame& videoFrame) to: int32_t RenderFrame(const uint32_t streamId, const I420VideoFrame& videoFrame) BUG=1128 R=mflodman@webrtc.org, perkj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/46689005 Cr-Commit-Position: refs/heads/master@{#8902}
This commit is contained in:
@ -262,7 +262,7 @@ public:
|
||||
}
|
||||
;
|
||||
virtual int32_t RenderFrame(const uint32_t streamId,
|
||||
I420VideoFrame& videoFrame)
|
||||
const I420VideoFrame& videoFrame)
|
||||
{
|
||||
_cnt++;
|
||||
if (_cnt % 100 == 0)
|
||||
|
||||
Reference in New Issue
Block a user