| Index: webrtc/media/base/videosourceinterface.h
|
| diff --git a/webrtc/media/base/videosinkinterface.h b/webrtc/media/base/videosourceinterface.h
|
| similarity index 51%
|
| copy from webrtc/media/base/videosinkinterface.h
|
| copy to webrtc/media/base/videosourceinterface.h
|
| index 9b8ba318623e6b43b2db726f7f84f099f956de34..79ab48a932cb51239692d6e5dca44bbe4e70942c 100644
|
| --- a/webrtc/media/base/videosinkinterface.h
|
| +++ b/webrtc/media/base/videosourceinterface.h
|
| @@ -8,20 +8,23 @@
|
| * be found in the AUTHORS file in the root of the source tree.
|
| */
|
|
|
| -#ifndef WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_
|
| -#define WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_
|
| +#ifndef WEBRTC_MEDIA_BASE_VIDEOSOURCEINTERFACE_H_
|
| +#define WEBRTC_MEDIA_BASE_VIDEOSOURCEINTERFACE_H_
|
| +
|
| +#include "webrtc/media/base/videosinkinterface.h"
|
|
|
| namespace rtc {
|
|
|
| template <typename VideoFrameT>
|
| -class VideoSinkInterface {
|
| +class VideoSourceInterface {
|
| public:
|
| - virtual void OnFrame(const VideoFrameT& frame) = 0;
|
| + virtual void AddSink(VideoSinkInterface<VideoFrameT>* sink,
|
| + const VideoSinkCapabilities& capabilities) = 0;
|
| + virtual void RemoveSink(VideoSinkInterface<VideoFrameT>* sink) = 0;
|
|
|
| protected:
|
| - ~VideoSinkInterface() {}
|
| + virtual ~VideoSourceInterface() {}
|
| };
|
|
|
| } // namespace rtc
|
| -
|
| -#endif // WEBRTC_MEDIA_BASE_VIDEOSINKINTERFACE_H_
|
| +#endif // WEBRTC_MEDIA_BASE_VIDEOSOURCEINTERFACE_H_
|
|
|