Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: webrtc/modules/audio_coding/neteq/decoder_database.cc

Issue 1907183002: DecoderDatabase::DecoderInfo: Remove unused member variable rtp_sample_rate_hz (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/modules/audio_coding/neteq/decoder_database.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 13 matching lines...) Expand all
24 24
25 DecoderDatabase::~DecoderDatabase() {} 25 DecoderDatabase::~DecoderDatabase() {}
26 26
27 DecoderDatabase::DecoderInfo::DecoderInfo(NetEqDecoder ct, 27 DecoderDatabase::DecoderInfo::DecoderInfo(NetEqDecoder ct,
28 const std::string& nm, 28 const std::string& nm,
29 int fs, 29 int fs,
30 AudioDecoder* ext_dec) 30 AudioDecoder* ext_dec)
31 : codec_type(ct), 31 : codec_type(ct),
32 name(nm), 32 name(nm),
33 fs_hz(fs), 33 fs_hz(fs),
34 rtp_sample_rate_hz(fs),
35 external_decoder(ext_dec) {} 34 external_decoder(ext_dec) {}
36 35
37 DecoderDatabase::DecoderInfo::DecoderInfo(DecoderInfo&&) = default; 36 DecoderDatabase::DecoderInfo::DecoderInfo(DecoderInfo&&) = default;
38 DecoderDatabase::DecoderInfo::~DecoderInfo() = default; 37 DecoderDatabase::DecoderInfo::~DecoderInfo() = default;
39 38
40 AudioDecoder* DecoderDatabase::DecoderInfo::GetDecoder() { 39 AudioDecoder* DecoderDatabase::DecoderInfo::GetDecoder() {
41 if (external_decoder) { 40 if (external_decoder) {
42 RTC_DCHECK(!decoder_); 41 RTC_DCHECK(!decoder_);
43 return external_decoder; 42 return external_decoder;
44 } 43 }
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 LOG(LS_WARNING) << "CheckPayloadTypes: unknown RTP payload type " 258 LOG(LS_WARNING) << "CheckPayloadTypes: unknown RTP payload type "
260 << static_cast<int>((*it)->header.payloadType); 259 << static_cast<int>((*it)->header.payloadType);
261 return kDecoderNotFound; 260 return kDecoderNotFound;
262 } 261 }
263 } 262 }
264 return kOK; 263 return kOK;
265 } 264 }
266 265
267 266
268 } // namespace webrtc 267 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/decoder_database.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698