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 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1793 parameters_.max_bitrate_bps = *params.max_bandwidth_bps; | 1793 parameters_.max_bitrate_bps = *params.max_bandwidth_bps; |
1794 pending_encoder_reconfiguration_ = true; | 1794 pending_encoder_reconfiguration_ = true; |
1795 } | 1795 } |
1796 if (params.conference_mode) { | 1796 if (params.conference_mode) { |
1797 parameters_.conference_mode = *params.conference_mode; | 1797 parameters_.conference_mode = *params.conference_mode; |
1798 } | 1798 } |
1799 | 1799 |
1800 // Set codecs and options. | 1800 // Set codecs and options. |
1801 if (params.codec) { | 1801 if (params.codec) { |
1802 SetCodec(*params.codec); | 1802 SetCodec(*params.codec); |
1803 return; | 1803 recreate_stream = false; // SetCodec has already recreated the stream. |
1804 } else if (params.conference_mode && parameters_.codec_settings) { | 1804 } else if (params.conference_mode && parameters_.codec_settings) { |
1805 SetCodec(*parameters_.codec_settings); | 1805 SetCodec(*parameters_.codec_settings); |
1806 return; | 1806 recreate_stream = false; // SetCodec has already recreated the stream. |
1807 } | 1807 } |
1808 if (recreate_stream) { | 1808 if (recreate_stream) { |
1809 LOG(LS_INFO) | 1809 LOG(LS_INFO) |
1810 << "RecreateWebRtcStream (send) because of SetSendParameters"; | 1810 << "RecreateWebRtcStream (send) because of SetSendParameters"; |
1811 RecreateWebRtcStream(); | 1811 RecreateWebRtcStream(); |
1812 } | 1812 } |
1813 } // release |lock_| | 1813 } // release |lock_| |
1814 | 1814 |
1815 // |capturer_->AddOrUpdateSink| may not be called while holding |lock_| since | 1815 // |capturer_->AddOrUpdateSink| may not be called while holding |lock_| since |
1816 // that might cause a lock order inversion. | 1816 // that might cause a lock order inversion. |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2567 rtx_mapping[video_codecs[i].codec.id] != | 2567 rtx_mapping[video_codecs[i].codec.id] != |
2568 fec_settings.red_payload_type) { | 2568 fec_settings.red_payload_type) { |
2569 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; | 2569 video_codecs[i].rtx_payload_type = rtx_mapping[video_codecs[i].codec.id]; |
2570 } | 2570 } |
2571 } | 2571 } |
2572 | 2572 |
2573 return video_codecs; | 2573 return video_codecs; |
2574 } | 2574 } |
2575 | 2575 |
2576 } // namespace cricket | 2576 } // namespace cricket |
OLD | NEW |