Fix inverted RTC_DCHECK in RtpVideoStreamReceiver::RtcpFeedbackBuffer

Bug: None
Change-Id: I4b81b1d6b935756598db7dd0e6bcbc4f970e0d44
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/140106
Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org>
Commit-Queue: Elad Alon <eladalon@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28160}
This commit is contained in:
Elad Alon
2019-06-04 22:59:54 +02:00
committed by Commit Bot
parent ba96e2f645
commit 36690cd9e4

View File

@ -120,7 +120,7 @@ void RtpVideoStreamReceiver::RtcpFeedbackBuffer::SendLossNotification(
bool buffering_allowed) { bool buffering_allowed) {
RTC_DCHECK(buffering_allowed); RTC_DCHECK(buffering_allowed);
rtc::CritScope lock(&cs_); rtc::CritScope lock(&cs_);
RTC_DCHECK(lntf_state_) RTC_DCHECK(!lntf_state_)
<< "SendLossNotification() called twice in a row with no call to " << "SendLossNotification() called twice in a row with no call to "
"SendBufferedRtcpFeedback() in between."; "SendBufferedRtcpFeedback() in between.";
lntf_state_ = absl::make_optional<LossNotificationState>( lntf_state_ = absl::make_optional<LossNotificationState>(