Index: webrtc/video/video_send_stream.cc |
diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc |
index 798b494fdb78a93bafc06f69529a2fcd3c9d8111..241a0de34563d06111d804d1bd88d64654c3b494 100644 |
--- a/webrtc/video/video_send_stream.cc |
+++ b/webrtc/video/video_send_stream.cc |
@@ -475,9 +475,12 @@ bool VideoSendStream::ReconfigureVideoEncoder( |
RTC_DCHECK_GT(streams[0].max_framerate, 0); |
video_codec.maxFramerate = streams[0].max_framerate; |
- if (!SetSendCodec(video_codec)) |
+ if (!SetSendCodec(video_codec)) { |
+ LOG(LS_WARNING) << "(Re)configureVideoEncoder: SetSendCodec failed " |
+ "for config: " |
+ << config.ToString(); |
return false; |
- |
+ } |
// Clear stats for disabled layers. |
for (size_t i = video_codec.numberOfSimulcastStreams; |
i < config_.rtp.ssrcs.size(); ++i) { |