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

Unified Diff: webrtc/modules/audio_coding/neteq/tools/rtp_analyze.cc

Issue 2005873002: Let PacketSource::NextPacket() return an std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 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
Index: webrtc/modules/audio_coding/neteq/tools/rtp_analyze.cc
diff --git a/webrtc/modules/audio_coding/neteq/tools/rtp_analyze.cc b/webrtc/modules/audio_coding/neteq/tools/rtp_analyze.cc
index 0735b4c388d50b8672a99a9e49f3025188409e71..74c64e0a8a486777adbb9175380971879cfd1904 100644
--- a/webrtc/modules/audio_coding/neteq/tools/rtp_analyze.cc
+++ b/webrtc/modules/audio_coding/neteq/tools/rtp_analyze.cc
@@ -107,7 +107,7 @@ int main(int argc, char* argv[]) {
int cycles = -1;
std::unique_ptr<webrtc::test::Packet> packet;
while (true) {
- packet.reset(file_source->NextPacket());
+ packet = file_source->NextPacket();
if (!packet.get()) {
// End of file reached.
break;

Powered by Google App Engine
This is Rietveld 408576698