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

Unified Diff: webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h

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_file_source.h
diff --git a/webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h b/webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h
index b02e16acdd6d96a0d0d6cace1eb42185f764655f..1b98d6cb32a2995b5ccafd4af2a7c0f17fd11ea2 100644
--- a/webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h
+++ b/webrtc/modules/audio_coding/neteq/tools/rtp_file_source.h
@@ -44,9 +44,7 @@ class RtpFileSource : public PacketSource {
// Registers an RTP header extension and binds it to |id|.
virtual bool RegisterRtpHeaderExtension(RTPExtensionType type, uint8_t id);
- // Returns a pointer to the next packet. Returns NULL if end of file was
- // reached, or if a the data was corrupt.
- Packet* NextPacket() override;
+ std::unique_ptr<Packet> NextPacket() override;
private:
static const int kFirstLineLength = 40;
« no previous file with comments | « webrtc/modules/audio_coding/neteq/tools/rtp_analyze.cc ('k') | webrtc/modules/audio_coding/neteq/tools/rtp_file_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698