Chromium Code Reviews| Index: webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
| diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
| index dc544fbe69fe01534aae27c20e843c65dd3c0802..146d845ac456589a678a42d71b618eb18e81db58 100644 |
| --- a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
| +++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
| @@ -469,7 +469,8 @@ int32_t RTPSender::CheckPayloadType(int8_t payload_type, |
| std::map<int8_t, RtpUtility::Payload*>::iterator it = |
| payload_type_map_.find(payload_type); |
| if (it == payload_type_map_.end()) { |
| - LOG(LS_WARNING) << "Payload type " << payload_type << " not registered."; |
| + LOG(LS_WARNING) << "Payload type " << static_cast<int>(payload_type) |
|
the sun
2015/12/03 11:10:28
int8_t couldn't be serialized?
stefan-webrtc
2015/12/04 10:31:43
It's interpreted as char.
|
| + << " not registered."; |
| return -1; |
| } |
| SetSendPayloadType(payload_type); |
| @@ -512,7 +513,8 @@ int32_t RTPSender::SendOutgoingData(FrameType frame_type, |
| } |
| RtpVideoCodecTypes video_type = kRtpVideoGeneric; |
| if (CheckPayloadType(payload_type, &video_type) != 0) { |
| - LOG(LS_ERROR) << "Don't send data with unknown payload type."; |
| + LOG(LS_ERROR) << "Don't send data with unknown payload type: " |
| + << static_cast<int>(payload_type) << "."; |
| return -1; |
| } |