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

Unified Diff: webrtc/api/rtpparameters.h

Issue 2052233002: Enable passing receive stream ID to the decoder factory. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add tests. Created 4 years, 6 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/api/rtpparameters.h
diff --git a/webrtc/api/rtpparameters.h b/webrtc/api/rtpparameters.h
index 5c79ab4e9df571f1f4ef7c315c6efc4024bae84c..13704dc15b0e6d41d5b532d7dcc80bae3cc2c996 100644
--- a/webrtc/api/rtpparameters.h
+++ b/webrtc/api/rtpparameters.h
@@ -14,16 +14,20 @@
#include <string>
#include <vector>
+#include "webrtc/base/optional.h"
+
namespace webrtc {
// These structures are defined as part of the RtpSender interface.
// See http://w3c.github.io/webrtc-pc/#rtcrtpsender-interface for details.
struct RtpEncodingParameters {
+ rtc::Optional<uint32_t> ssrc;
bool active = true;
int max_bitrate_bps = -1;
bool operator==(const RtpEncodingParameters& o) const {
- return active == o.active && max_bitrate_bps == o.max_bitrate_bps;
+ return ssrc == o.ssrc && active == o.active &&
+ max_bitrate_bps == o.max_bitrate_bps;
}
bool operator!=(const RtpEncodingParameters& o) const {
return !(*this == o);
« no previous file with comments | « no previous file | webrtc/media/engine/fakewebrtcvideoengine.h » ('j') | webrtc/media/engine/webrtcvideoengine2_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698