| Index: talk/app/webrtc/mediastreaminterface.h
|
| diff --git a/talk/app/webrtc/mediastreaminterface.h b/talk/app/webrtc/mediastreaminterface.h
|
| index 9b137d9f761006bc45477b455fc58b91236a7069..f2543bb0b7288f9d4b13a75ac02ed0ff89015e8e 100644
|
| --- a/talk/app/webrtc/mediastreaminterface.h
|
| +++ b/talk/app/webrtc/mediastreaminterface.h
|
| @@ -40,6 +40,7 @@
|
| #include "webrtc/base/basictypes.h"
|
| #include "webrtc/base/refcount.h"
|
| #include "webrtc/base/scoped_ref_ptr.h"
|
| +#include "webrtc/media/base/videosinkinterface.h"
|
|
|
| namespace cricket {
|
|
|
| @@ -116,12 +117,17 @@ class MediaStreamTrackInterface : public rtc::RefCountInterface,
|
| };
|
|
|
| // Interface for rendering VideoFrames from a VideoTrack
|
| -class VideoRendererInterface {
|
| +class VideoRendererInterface
|
| + : public rtc::VideoSinkInterface<cricket::VideoFrame> {
|
| public:
|
| // |frame| may have pending rotation. For clients which can't apply rotation,
|
| // |frame|->GetCopyWithRotationApplied() will return a frame that has the
|
| // rotation applied.
|
| virtual void RenderFrame(const cricket::VideoFrame* frame) = 0;
|
| + // Intended to replace RenderFrame.
|
| + void OnFrame(const cricket::VideoFrame& frame) override {
|
| + RenderFrame(&frame);
|
| + }
|
|
|
| protected:
|
| // The destructor is protected to prevent deletion via the interface.
|
|
|