blob: c3e95e23cce634e1c3431dcf7fb556310c89e917 [file] [log] [blame]
Markus Handelle93fe6c2021-05-20 22:46:31 +02001/*
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 Handella1b82012021-05-26 18:56:30 +020011#include "pc/video_track_source_proxy.h"
Markus Handelle93fe6c2021-05-20 22:46:31 +020012
13#include "api/media_stream_interface.h"
Harald Alvestrandc24a2182022-02-23 13:44:59 +000014#include "api/scoped_refptr.h"
Markus Handelle93fe6c2021-05-20 22:46:31 +020015#include "api/video_track_source_proxy_factory.h"
Harald Alvestrandc24a2182022-02-23 13:44:59 +000016#include "rtc_base/thread.h"
Markus Handelle93fe6c2021-05-20 22:46:31 +020017
18namespace webrtc {
19
20rtc::scoped_refptr<VideoTrackSourceInterface> CreateVideoTrackSourceProxy(
21 rtc::Thread* signaling_thread,
22 rtc::Thread* worker_thread,
23 VideoTrackSourceInterface* source) {
Tomas Gunnarsson0d5ce622022-03-18 15:57:15 +010024 return VideoTrackSourceProxy::Create(
25 signaling_thread, worker_thread,
26 rtc::scoped_refptr<VideoTrackSourceInterface>(source));
Markus Handelle93fe6c2021-05-20 22:46:31 +020027}
28
29} // namespace webrtc