Make video encoder reconfiguration logging more verbose
logging the configuration, in particular the content type which together with RTP configuration information like the ssrcs helps differentiating between encoders. BUG=None Change-Id: I1b4b2ec2bffea338cc73c3a9c6a3f775d8f1c26b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/319560 Reviewed-by: Henrik Boström <hbos@webrtc.org> Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Commit-Queue: Philipp Hancke <phancke@microsoft.com> Cr-Commit-Position: refs/heads/main@{#40744}
This commit is contained in:
parent
31718d7ce2
commit
6ba7feb302
@ -68,8 +68,7 @@ VideoEncoderConfig::~VideoEncoderConfig() = default;
|
||||
std::string VideoEncoderConfig::ToString() const {
|
||||
char buf[1024];
|
||||
rtc::SimpleStringBuilder ss(buf);
|
||||
ss << "{codec_type: ";
|
||||
ss << CodecTypeToPayloadString(codec_type);
|
||||
ss << "{codec_type: " << CodecTypeToPayloadString(codec_type);
|
||||
ss << ", content_type: ";
|
||||
switch (content_type) {
|
||||
case ContentType::kRealtimeVideo:
|
||||
|
||||
@ -282,6 +282,8 @@ void VideoSendStream::ReconfigureVideoEncoder(VideoEncoderConfig config,
|
||||
SetParametersCallback callback) {
|
||||
RTC_DCHECK_RUN_ON(&thread_checker_);
|
||||
RTC_DCHECK_EQ(content_type_, config.content_type);
|
||||
RTC_LOG(LS_VERBOSE) << "Encoder config: " << config.ToString()
|
||||
<< " VideoSendStream config: " << config_.ToString();
|
||||
video_stream_encoder_->ConfigureEncoder(
|
||||
std::move(config),
|
||||
config_.rtp.max_packet_size - CalculateMaxHeaderSize(config_.rtp),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user