OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 96 matching lines...) Loading... |
107 RTPAliveType RTPReceiverVideo::ProcessDeadOrAlive( | 107 RTPAliveType RTPReceiverVideo::ProcessDeadOrAlive( |
108 uint16_t last_payload_length) const { | 108 uint16_t last_payload_length) const { |
109 return kRtpDead; | 109 return kRtpDead; |
110 } | 110 } |
111 | 111 |
112 int32_t RTPReceiverVideo::InvokeOnInitializeDecoder( | 112 int32_t RTPReceiverVideo::InvokeOnInitializeDecoder( |
113 RtpFeedback* callback, | 113 RtpFeedback* callback, |
114 int8_t payload_type, | 114 int8_t payload_type, |
115 const char payload_name[RTP_PAYLOAD_NAME_SIZE], | 115 const char payload_name[RTP_PAYLOAD_NAME_SIZE], |
116 const PayloadUnion& specific_payload) const { | 116 const PayloadUnion& specific_payload) const { |
117 // For video we just go with default values. | 117 // TODO(pbos): Remove as soon as audio can handle a changing payload type |
118 if (-1 == | 118 // without this callback. |
119 callback->OnInitializeDecoder(payload_type, payload_name, | |
120 kVideoPayloadTypeFrequency, 1, 0)) { | |
121 LOG(LS_ERROR) << "Failed to created decoder for payload type: " | |
122 << static_cast<int>(payload_type); | |
123 return -1; | |
124 } | |
125 return 0; | 119 return 0; |
126 } | 120 } |
127 | 121 |
128 } // namespace webrtc | 122 } // namespace webrtc |
OLD | NEW |