Chromium Code Reviews

Side by Side Diff: webrtc/modules/rtp_rtcp/source/rtp_receiver_video.cc

Issue 1647163002: Deprecate VideoDecoder::Reset() and remove calls. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Remove OnInitializeDecoder for video Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
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...)
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
OLDNEW
« no previous file with comments | « talk/media/webrtc/fakewebrtcvideoengine.h ('k') | webrtc/modules/video_coding/codec_database.cc » ('j') | no next file with comments »

Powered by Google App Engine