Removed log from StatsCollector::GetTrackIdBySsrc.

Bug: chromium:906988
Change-Id: I353db16687e66c265a6121ee24e6353971d7884e
Reviewed-on: https://webrtc-review.googlesource.com/c/115120
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Reviewed-by: Seth Hampson <shampson@webrtc.org>
Commit-Queue: Steve Anton <steveanton@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#26064}
This commit is contained in:
Seth Hampson
2018-12-19 16:12:11 -08:00
committed by Commit Bot
parent ceac0152b1
commit 54fa02486a

View File

@ -1106,20 +1106,11 @@ absl::string_view StatsCollector::GetTrackIdBySsrc(
uint32_t ssrc,
StatsReport::Direction direction) {
RTC_DCHECK(pc_->signaling_thread()->IsCurrent());
absl::string_view track_id;
if (direction == StatsReport::kSend) {
track_id = pc_->GetLocalTrackIdBySsrc(ssrc);
} else {
RTC_DCHECK_EQ(direction, StatsReport::kReceive);
track_id = pc_->GetRemoteTrackIdBySsrc(ssrc);
return pc_->GetLocalTrackIdBySsrc(ssrc);
}
if (track_id.empty()) {
RTC_LOG(LS_WARNING) << "The SSRC " << ssrc << " is not associated with a "
<< (direction == StatsReport::kSend ? "sending"
: "receiving")
<< " track";
}
return track_id;
RTC_DCHECK_EQ(direction, StatsReport::kReceive);
return pc_->GetRemoteTrackIdBySsrc(ssrc);
}
void StatsCollector::UpdateTrackReports() {