OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 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 | 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 | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1984 | 1984 |
1985 void WebRtcVideoChannel2::WebRtcVideoSendStream::SetSend(bool send) { | 1985 void WebRtcVideoChannel2::WebRtcVideoSendStream::SetSend(bool send) { |
1986 rtc::CritScope cs(&lock_); | 1986 rtc::CritScope cs(&lock_); |
1987 sending_ = send; | 1987 sending_ = send; |
1988 UpdateSendState(); | 1988 UpdateSendState(); |
1989 } | 1989 } |
1990 | 1990 |
1991 void WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate(Load load) { | 1991 void WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate(Load load) { |
1992 if (worker_thread_ != rtc::Thread::Current()) { | 1992 if (worker_thread_ != rtc::Thread::Current()) { |
1993 invoker_.AsyncInvoke<void>( | 1993 invoker_.AsyncInvoke<void>( |
1994 worker_thread_, | 1994 FROM_HERE, worker_thread_, |
1995 rtc::Bind(&WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate, | 1995 rtc::Bind(&WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate, |
1996 this, load)); | 1996 this, load)); |
1997 return; | 1997 return; |
1998 } | 1998 } |
1999 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 1999 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
2000 if (!source_) { | 2000 if (!source_) { |
2001 return; | 2001 return; |
2002 } | 2002 } |
2003 { | 2003 { |
2004 rtc::CritScope cs(&lock_); | 2004 rtc::CritScope cs(&lock_); |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2586 rtx_mapping[video_codecs[i].codec.id] != | 2586 rtx_mapping[video_codecs[i].codec.id] != |
2587 fec_settings.red_payload_type) { | 2587 fec_settings.red_payload_type) { |
2588 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2588 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2589 } | 2589 } |
2590 } | 2590 } |
2591 | 2591 |
2592 return video_codecs; | 2592 return video_codecs; |
2593 } | 2593 } |
2594 | 2594 |
2595 } // namespace cricket | 2595 } // namespace cricket |
OLD | NEW |