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

Unified Diff: webrtc/modules/audio_coding/neteq/tools/constant_pcm_packet_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/constant_pcm_packet_source.h
diff --git a/webrtc/modules/audio_coding/neteq/tools/constant_pcm_packet_source.h b/webrtc/modules/audio_coding/neteq/tools/constant_pcm_packet_source.h
index 69723035410c2b03d02bfd9d6f4b13395f708395..d1f88771b984e4ad0a83b255ce27f6e38687e65f 100644
--- a/webrtc/modules/audio_coding/neteq/tools/constant_pcm_packet_source.h
+++ b/webrtc/modules/audio_coding/neteq/tools/constant_pcm_packet_source.h
@@ -31,9 +31,7 @@ class ConstantPcmPacketSource : public PacketSource {
int sample_rate_hz,
int payload_type);
- // Returns a pointer to the next packet. Will never return NULL. That is,
- // the source is infinite.
- Packet* NextPacket() override;
+ std::unique_ptr<Packet> NextPacket() override;
private:
void WriteHeader(uint8_t* packet_memory);

Powered by Google App Engine
This is Rietveld 408576698