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 1986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1997 | 1997 |
1998 void WebRtcVideoChannel2::WebRtcVideoSendStream::SetSend(bool send) { | 1998 void WebRtcVideoChannel2::WebRtcVideoSendStream::SetSend(bool send) { |
1999 rtc::CritScope cs(&lock_); | 1999 rtc::CritScope cs(&lock_); |
2000 sending_ = send; | 2000 sending_ = send; |
2001 UpdateSendState(); | 2001 UpdateSendState(); |
2002 } | 2002 } |
2003 | 2003 |
2004 void WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate(Load load) { | 2004 void WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate(Load load) { |
2005 if (worker_thread_ != rtc::Thread::Current()) { | 2005 if (worker_thread_ != rtc::Thread::Current()) { |
2006 invoker_.AsyncInvoke<void>( | 2006 invoker_.AsyncInvoke<void>( |
2007 worker_thread_, | 2007 RTC_FROM_HERE, worker_thread_, |
2008 rtc::Bind(&WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate, | 2008 rtc::Bind(&WebRtcVideoChannel2::WebRtcVideoSendStream::OnLoadUpdate, |
2009 this, load)); | 2009 this, load)); |
2010 return; | 2010 return; |
2011 } | 2011 } |
2012 RTC_DCHECK(thread_checker_.CalledOnValidThread()); | 2012 RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
2013 if (!source_) { | 2013 if (!source_) { |
2014 return; | 2014 return; |
2015 } | 2015 } |
2016 { | 2016 { |
2017 rtc::CritScope cs(&lock_); | 2017 rtc::CritScope cs(&lock_); |
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2613 rtx_mapping[video_codecs[i].codec.id] != | 2613 rtx_mapping[video_codecs[i].codec.id] != |
2614 fec_settings.red_payload_type) { | 2614 fec_settings.red_payload_type) { |
2615 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2615 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2616 } | 2616 } |
2617 } | 2617 } |
2618 | 2618 |
2619 return video_codecs; | 2619 return video_codecs; |
2620 } | 2620 } |
2621 | 2621 |
2622 } // namespace cricket | 2622 } // namespace cricket |
OLD | NEW |