Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: webrtc/media/engine/webrtcvideoengine2.cc

Issue 1811373002: Fix broken CVO header extension (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webrtc/media/base/fakevideorenderer.h ('k') | webrtc/media/engine/webrtcvideoengine2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698