Index: talk/media/base/capturerenderadapter.h |
diff --git a/talk/media/base/capturerenderadapter.h b/talk/media/base/capturerenderadapter.h |
index a2729527484d7685304b70325c4faae87c5e2626..f972c983c5d85b3862ad1e7dd82e6cc01b56a048 100644 |
--- a/talk/media/base/capturerenderadapter.h |
+++ b/talk/media/base/capturerenderadapter.h |
@@ -39,34 +39,32 @@ |
#include "talk/media/base/videocapturer.h" |
#include "webrtc/base/criticalsection.h" |
#include "webrtc/base/sigslot.h" |
+#include "webrtc/media/base/videosinkinterface.h" |
namespace cricket { |
class VideoCapturer; |
class VideoProcessor; |
-class VideoRenderer; |
class CaptureRenderAdapter : public sigslot::has_slots<> { |
public: |
static CaptureRenderAdapter* Create(VideoCapturer* video_capturer); |
~CaptureRenderAdapter(); |
- void AddRenderer(VideoRenderer* video_renderer); |
- void RemoveRenderer(VideoRenderer* video_renderer); |
+ void AddSink(rtc::VideoSinkInterface<VideoFrame>* sink); |
+ void RemoveSink(rtc::VideoSinkInterface<VideoFrame>* sink); |
VideoCapturer* video_capturer() { return video_capturer_; } |
private: |
- // Just pointers since ownership is not handed over to this class. |
- typedef std::vector<VideoRenderer*> VideoRenderers; |
- |
explicit CaptureRenderAdapter(VideoCapturer* video_capturer); |
void Init(); |
// Callback for frames received from the capturer. |
void OnVideoFrame(VideoCapturer* capturer, const VideoFrame* video_frame); |
- VideoRenderers video_renderers_; |
+ // Just pointers since ownership is not handed over to this class. |
+ std::vector<rtc::VideoSinkInterface<VideoFrame>*> sinks_; |
VideoCapturer* video_capturer_; |
// Critical section synchronizing the capture thread. |
rtc::CriticalSection capture_crit_; |