| Index: webrtc/examples/peerconnection/client/linux/main_wnd.cc
|
| diff --git a/webrtc/examples/peerconnection/client/linux/main_wnd.cc b/webrtc/examples/peerconnection/client/linux/main_wnd.cc
|
| index 8d7d11ac153727d1489ebfe43e2381ff20885975..99b6b693024d148bdbed36494b0a69819ec5791c 100644
|
| --- a/webrtc/examples/peerconnection/client/linux/main_wnd.cc
|
| +++ b/webrtc/examples/peerconnection/client/linux/main_wnd.cc
|
| @@ -15,6 +15,7 @@
|
| #include <stddef.h>
|
|
|
| #include "libyuv/convert_from.h"
|
| +#include "webrtc/api/video/i420_buffer.h"
|
| #include "webrtc/examples/peerconnection/client/defaults.h"
|
| #include "webrtc/base/common.h"
|
| #include "webrtc/base/logging.h"
|
| @@ -486,9 +487,10 @@ void GtkMainWnd::VideoRenderer::OnFrame(
|
| gdk_threads_enter();
|
|
|
| rtc::scoped_refptr<webrtc::VideoFrameBuffer> buffer(
|
| - webrtc::I420Buffer::Rotate(video_frame.video_frame_buffer(),
|
| - video_frame.rotation()));
|
| -
|
| + video_frame.video_frame_buffer());
|
| + if (video_frame.rotation() != webrtc::kVideoRotation_0) {
|
| + buffer = webrtc::I420Buffer::Rotate(*buffer, video_frame.rotation());
|
| + }
|
| SetSize(buffer->width(), buffer->height());
|
|
|
| libyuv::I420ToRGBA(buffer->DataY(), buffer->StrideY(),
|
|
|