Revert "Changed argument occurences of const I420VideoFrame* to const I420VideoFrame& and non-const I420VideoFrame& to I420VideoFrame*."

This reverts commit r8731.

Reason for revert: Breakes Chromium FYI bots.

TBR=hbos, tommi

Review URL: https://webrtc-codereview.appspot.com/40359004

Cr-Commit-Position: refs/heads/master@{#8733}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8733 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
magjed@webrtc.org
2015-03-16 13:46:52 +00:00
parent 93d9d6503e
commit 2056ee3e3c
72 changed files with 290 additions and 275 deletions

View File

@ -44,14 +44,15 @@ VideoX11Channel::~VideoX11Channel()
}
int32_t VideoX11Channel::RenderFrame(const uint32_t streamId,
I420VideoFrame* videoFrame) {
I420VideoFrame& videoFrame) {
CriticalSectionScoped cs(&_crit);
if (_width != videoFrame->width() || _height != videoFrame->height()) {
if (FrameSizeChange(videoFrame->width(), videoFrame->height(), 1) == -1) {
if (_width != videoFrame.width() || _height
!= videoFrame.height()) {
if (FrameSizeChange(videoFrame.width(), videoFrame.height(), 1) == -1) {
return -1;
}
}
return DeliverFrame(*videoFrame);
return DeliverFrame(videoFrame);
}
int32_t VideoX11Channel::FrameSizeChange(int32_t width,

View File

@ -34,7 +34,7 @@ public:
virtual ~VideoX11Channel();
virtual int32_t RenderFrame(const uint32_t streamId,
I420VideoFrame* videoFrame);
I420VideoFrame& videoFrame);
int32_t FrameSizeChange(int32_t width, int32_t height,
int32_t numberOfStreams);