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

Unified Diff: talk/media/webrtc/webrtcvideoengine2.cc

Issue 1263663005: Pass the encoder's internal source property through to video_sender to request a keyframe from the e (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fix compilation error (extra period) Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: talk/media/webrtc/webrtcvideoengine2.cc
diff --git a/talk/media/webrtc/webrtcvideoengine2.cc b/talk/media/webrtc/webrtcvideoengine2.cc
index 3fd5690125ad8d2cb3fd954fdc00e8c2c742742e..5f4edf66e32217fe5c3a09eda453399f389a976d 100644
--- a/talk/media/webrtc/webrtcvideoengine2.cc
+++ b/talk/media/webrtc/webrtcvideoengine2.cc
@@ -1947,6 +1947,11 @@ void WebRtcVideoChannel2::WebRtcVideoSendStream::SetCodecAndOptions(
parameters_.config.encoder_settings.encoder = new_encoder.encoder;
parameters_.config.encoder_settings.payload_name = codec_settings.codec.name;
parameters_.config.encoder_settings.payload_type = codec_settings.codec.id;
+ if (new_encoder.external) {
+ webrtc::VideoCodecType type = CodecTypeFromName(codec_settings.codec.name);
+ parameters_.config.encoder_settings.internal_source =
+ external_encoder_factory_->EncoderTypeHasInternalSource(type);
+ }
parameters_.config.rtp.fec = codec_settings.fec;
// Set RTX payload type if RTX is enabled.
« no previous file with comments | « no previous file | webrtc/video/video_send_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698