Markus Handell | e93fe6c | 2021-05-20 22:46:31 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2021 The WebRTC project authors. All Rights Reserved. |
| 3 | * |
| 4 | * Use of this source code is governed by a BSD-style license |
| 5 | * that can be found in the LICENSE file in the root of the source |
| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 | |
Markus Handell | a1b8201 | 2021-05-26 18:56:30 +0200 | [diff] [blame] | 11 | #include "pc/video_track_source_proxy.h" |
Markus Handell | e93fe6c | 2021-05-20 22:46:31 +0200 | [diff] [blame] | 12 | |
| 13 | #include "api/media_stream_interface.h" |
Harald Alvestrand | c24a218 | 2022-02-23 13:44:59 +0000 | [diff] [blame] | 14 | #include "api/scoped_refptr.h" |
Markus Handell | e93fe6c | 2021-05-20 22:46:31 +0200 | [diff] [blame] | 15 | #include "api/video_track_source_proxy_factory.h" |
Harald Alvestrand | c24a218 | 2022-02-23 13:44:59 +0000 | [diff] [blame] | 16 | #include "rtc_base/thread.h" |
Markus Handell | e93fe6c | 2021-05-20 22:46:31 +0200 | [diff] [blame] | 17 | |
| 18 | namespace webrtc { |
| 19 | |
| 20 | rtc::scoped_refptr<VideoTrackSourceInterface> CreateVideoTrackSourceProxy( |
| 21 | rtc::Thread* signaling_thread, |
| 22 | rtc::Thread* worker_thread, |
| 23 | VideoTrackSourceInterface* source) { |
Tomas Gunnarsson | 0d5ce62 | 2022-03-18 15:57:15 +0100 | [diff] [blame] | 24 | return VideoTrackSourceProxy::Create( |
| 25 | signaling_thread, worker_thread, |
| 26 | rtc::scoped_refptr<VideoTrackSourceInterface>(source)); |
Markus Handell | e93fe6c | 2021-05-20 22:46:31 +0200 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | } // namespace webrtc |