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

Unified Diff: remoting/codec/audio_decoder_opus.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/codec/audio_decoder_opus.h ('k') | remoting/codec/audio_decoder_verbatim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/audio_decoder_opus.cc
diff --git a/remoting/codec/audio_decoder_opus.cc b/remoting/codec/audio_decoder_opus.cc
index 8a578712bc59d50e310173cfd6ffaf1ed6a07823..5d05d3c3c5005142f5febe46ef2cb2d9b27e11cb 100644
--- a/remoting/codec/audio_decoder_opus.cc
+++ b/remoting/codec/audio_decoder_opus.cc
@@ -74,8 +74,8 @@ bool AudioDecoderOpus::ResetForPacket(AudioPacket* packet) {
return decoder_ != nullptr;
}
-scoped_ptr<AudioPacket> AudioDecoderOpus::Decode(
- scoped_ptr<AudioPacket> packet) {
+std::unique_ptr<AudioPacket> AudioDecoderOpus::Decode(
+ std::unique_ptr<AudioPacket> packet) {
if (packet->encoding() != AudioPacket::ENCODING_OPUS) {
LOG(WARNING) << "Received an audio packet with encoding "
<< packet->encoding() << " when an OPUS packet was expected.";
@@ -91,7 +91,7 @@ scoped_ptr<AudioPacket> AudioDecoderOpus::Decode(
}
// Create a new packet of decoded data.
- scoped_ptr<AudioPacket> decoded_packet(new AudioPacket());
+ std::unique_ptr<AudioPacket> decoded_packet(new AudioPacket());
decoded_packet->set_encoding(AudioPacket::ENCODING_RAW);
decoded_packet->set_sampling_rate(kSamplingRate);
decoded_packet->set_bytes_per_sample(AudioPacket::BYTES_PER_SAMPLE_2);
« no previous file with comments | « remoting/codec/audio_decoder_opus.h ('k') | remoting/codec/audio_decoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698