xref: /aosp_15_r20/external/webrtc/pc/video_track_source_proxy.cc (revision d9f758449e529ab9291ac668be2861e7a55c2422)
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 
11 #include "pc/video_track_source_proxy.h"
12 
13 #include "api/media_stream_interface.h"
14 #include "api/scoped_refptr.h"
15 #include "api/video_track_source_proxy_factory.h"
16 #include "rtc_base/thread.h"
17 
18 namespace webrtc {
19 
CreateVideoTrackSourceProxy(rtc::Thread * signaling_thread,rtc::Thread * worker_thread,VideoTrackSourceInterface * source)20 rtc::scoped_refptr<VideoTrackSourceInterface> CreateVideoTrackSourceProxy(
21     rtc::Thread* signaling_thread,
22     rtc::Thread* worker_thread,
23     VideoTrackSourceInterface* source) {
24   return VideoTrackSourceProxy::Create(
25       signaling_thread, worker_thread,
26       rtc::scoped_refptr<VideoTrackSourceInterface>(source));
27 }
28 
29 }  // namespace webrtc
30