| Index: webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc
|
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc b/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc
|
| index bdc05c6f7bb47325cb02e321c7182c640dc050b1..fb9b206cd161a45969bde58db358c0f15c89edf4 100644
|
| --- a/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc
|
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_receiver_impl.cc
|
| @@ -170,7 +170,7 @@ bool RtpReceiverImpl::IncomingRtpPacket(
|
| int8_t first_payload_byte = payload_length > 0 ? payload[0] : 0;
|
| bool is_red = false;
|
|
|
| - if (CheckPayloadChanged(rtp_header, first_payload_byte, is_red,
|
| + if (CheckPayloadChanged(rtp_header, first_payload_byte, &is_red,
|
| &payload_specific) == -1) {
|
| if (payload_length == 0) {
|
| // OK, keep-alive packet.
|
| @@ -320,7 +320,7 @@ void RtpReceiverImpl::CheckSSRCChanged(const RTPHeader& rtp_header) {
|
| // last known payload).
|
| int32_t RtpReceiverImpl::CheckPayloadChanged(const RTPHeader& rtp_header,
|
| const int8_t first_payload_byte,
|
| - bool& is_red,
|
| + bool* is_red,
|
| PayloadUnion* specific_payload) {
|
| bool re_initialize_decoder = false;
|
|
|
| @@ -338,7 +338,7 @@ int32_t RtpReceiverImpl::CheckPayloadChanged(const RTPHeader& rtp_header,
|
| if (rtp_payload_registry_->red_payload_type() == payload_type) {
|
| // Get the real codec payload type.
|
| payload_type = first_payload_byte & 0x7f;
|
| - is_red = true;
|
| + *is_red = true;
|
|
|
| if (rtp_payload_registry_->red_payload_type() == payload_type) {
|
| // Invalid payload type, traced by caller. If we proceeded here,
|
| @@ -360,7 +360,7 @@ int32_t RtpReceiverImpl::CheckPayloadChanged(const RTPHeader& rtp_header,
|
| &should_discard_changes);
|
|
|
| if (should_discard_changes) {
|
| - is_red = false;
|
| + *is_red = false;
|
| return 0;
|
| }
|
|
|
| @@ -390,7 +390,7 @@ int32_t RtpReceiverImpl::CheckPayloadChanged(const RTPHeader& rtp_header,
|
| }
|
| } else {
|
| rtp_media_receiver_->GetLastMediaSpecificPayload(specific_payload);
|
| - is_red = false;
|
| + *is_red = false;
|
| }
|
| } // End critsect.
|
|
|
|
|