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