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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_sender_video.h

Issue 2217383002: Use RtpPacketToSend in RtpSenderVideo (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase Created 4 years, 3 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/rtp_rtcp/source/rtp_sender_video.h
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h
index aaf295f61ac1a3698ad2a1e66ecd0f6743a1e5b1..96ddf4192141cfa1aedaea3d891d3c97c2de842a 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender_video.h
@@ -12,6 +12,7 @@
#define WEBRTC_MODULES_RTP_RTCP_SOURCE_RTP_SENDER_VIDEO_H_
#include <list>
+#include <memory>
#include "webrtc/base/criticalsection.h"
#include "webrtc/base/onetimeevent.h"
@@ -28,6 +29,7 @@
#include "webrtc/typedefs.h"
namespace webrtc {
+class RtpPacketToSend;
class RTPSenderVideo {
public:
@@ -75,20 +77,10 @@ class RTPSenderVideo {
void SetSelectiveRetransmissions(uint8_t settings);
private:
- void SendVideoPacket(uint8_t* data_buffer,
- size_t payload_length,
- size_t rtp_header_length,
- uint16_t seq_num,
- uint32_t capture_timestamp,
- int64_t capture_time_ms,
+ void SendVideoPacket(std::unique_ptr<RtpPacketToSend> packet,
StorageType storage);
- void SendVideoPacketAsRed(uint8_t* data_buffer,
- size_t payload_length,
- size_t rtp_header_length,
- uint16_t video_seq_num,
- uint32_t capture_timestamp,
- int64_t capture_time_ms,
+ void SendVideoPacketAsRed(std::unique_ptr<RtpPacketToSend> media_packet,
StorageType media_packet_storage,
bool protect);

Powered by Google App Engine
This is Rietveld 408576698