Report total bitrate for all streams in GetStats.
This regression wasn't caught because I accidentally disabled multiple streams for EndToEndTest.GetStats in a refactoring. R=stefan@webrtc.org, xians@webrtc.org BUG=1667 Review URL: https://webrtc-codereview.appspot.com/27179004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7701 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -38,7 +38,6 @@ RTCPReceiver::RTCPReceiver(const int32_t id, Clock* clock,
|
||||
_rtpRtcp(*owner),
|
||||
_criticalSectionFeedbacks(
|
||||
CriticalSectionWrapper::CreateCriticalSection()),
|
||||
_cbRtcpFeedback(NULL),
|
||||
_cbRtcpBandwidthObserver(NULL),
|
||||
_cbRtcpIntraFrameObserver(NULL),
|
||||
_criticalSectionRTCPReceiver(
|
||||
@ -145,12 +144,10 @@ uint32_t RTCPReceiver::RemoteSSRC() const {
|
||||
|
||||
void RTCPReceiver::RegisterRtcpObservers(
|
||||
RtcpIntraFrameObserver* intra_frame_callback,
|
||||
RtcpBandwidthObserver* bandwidth_callback,
|
||||
RtcpFeedback* feedback_callback) {
|
||||
RtcpBandwidthObserver* bandwidth_callback) {
|
||||
CriticalSectionScoped lock(_criticalSectionFeedbacks);
|
||||
_cbRtcpIntraFrameObserver = intra_frame_callback;
|
||||
_cbRtcpBandwidthObserver = bandwidth_callback;
|
||||
_cbRtcpFeedback = feedback_callback;
|
||||
}
|
||||
|
||||
void RTCPReceiver::SetSsrcs(uint32_t main_ssrc,
|
||||
@ -1442,23 +1439,6 @@ void RTCPReceiver::TriggerCallbacksFromRTCPPacket(
|
||||
now);
|
||||
}
|
||||
}
|
||||
if(_cbRtcpFeedback) {
|
||||
if(!(rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpSr)) {
|
||||
_cbRtcpFeedback->OnReceiveReportReceived(_id,
|
||||
rtcpPacketInformation.remoteSSRC);
|
||||
}
|
||||
if(rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpXrVoipMetric) {
|
||||
_cbRtcpFeedback->OnXRVoIPMetricReceived(_id,
|
||||
rtcpPacketInformation.VoIPMetric);
|
||||
}
|
||||
if(rtcpPacketInformation.rtcpPacketTypeFlags & kRtcpApp) {
|
||||
_cbRtcpFeedback->OnApplicationDataReceived(_id,
|
||||
rtcpPacketInformation.applicationSubType,
|
||||
rtcpPacketInformation.applicationName,
|
||||
rtcpPacketInformation.applicationLength,
|
||||
rtcpPacketInformation.applicationData);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user