Replace scoped_ptr with unique_ptr in webrtc/modules/audio_coding/neteq/
BUG=webrtc:5520 Review URL: https://codereview.webrtc.org/1697823002 Cr-Commit-Position: refs/heads/master@{#11616}
This commit is contained in:
@ -10,10 +10,11 @@
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include "gflags/gflags.h"
|
||||
#include "webrtc/base/scoped_ptr.h"
|
||||
#include "webrtc/modules/audio_coding/neteq/tools/packet.h"
|
||||
#include "webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h"
|
||||
|
||||
@ -63,7 +64,7 @@ int main(int argc, char* argv[]) {
|
||||
}
|
||||
|
||||
printf("Input file: %s\n", argv[1]);
|
||||
rtc::scoped_ptr<webrtc::test::RtpFileSource> file_source(
|
||||
std::unique_ptr<webrtc::test::RtpFileSource> file_source(
|
||||
webrtc::test::RtpFileSource::Create(argv[1]));
|
||||
assert(file_source.get());
|
||||
// Set RTP extension IDs.
|
||||
@ -104,7 +105,7 @@ int main(int argc, char* argv[]) {
|
||||
|
||||
uint32_t max_abs_send_time = 0;
|
||||
int cycles = -1;
|
||||
rtc::scoped_ptr<webrtc::test::Packet> packet;
|
||||
std::unique_ptr<webrtc::test::Packet> packet;
|
||||
while (true) {
|
||||
packet.reset(file_source->NextPacket());
|
||||
if (!packet.get()) {
|
||||
|
||||
Reference in New Issue
Block a user