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

Unified Diff: media/cast/cast_config.h

Issue 2068133005: Refactoring: Use enum for RtpPayloadType. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert to Patch 2. 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
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.cc ('k') | media/cast/cast_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_config.h
diff --git a/media/cast/cast_config.h b/media/cast/cast_config.h
index 85ec3b917648bd2e3081f7fec74717ef2402bcde..f99358a6471f9deb762c3cafc7aebdfbc6ee9614 100644
--- a/media/cast/cast_config.h
+++ b/media/cast/cast_config.h
@@ -44,10 +44,6 @@ enum SuggestedDefaults {
// http://crbug.com/530839
kDefaultRtpMaxDelayMs = 100,
- // RTP payload types that identify an RTP stream as audio or video.
- kDefaultRtpAudioPayloadType = 127,
- kDefaultRtpVideoPayloadType = 96,
-
// Suggested minimum and maximum video bitrates for general-purpose use (up to
// 1080p, 30 FPS).
kDefaultMinVideoKbps = 300,
@@ -81,7 +77,7 @@ struct AudioSenderConfig {
base::TimeDelta animated_playout_delay;
// RTP payload type enum: Specifies the type/encoding of frame data.
- int rtp_payload_type;
+ RtpPayloadType rtp_payload_type;
bool use_external_encoder;
int frequency;
@@ -120,7 +116,7 @@ struct VideoSenderConfig {
base::TimeDelta animated_playout_delay;
// RTP payload type enum: Specifies the type/encoding of frame data.
- int rtp_payload_type;
+ RtpPayloadType rtp_payload_type;
bool use_external_encoder;
@@ -183,7 +179,7 @@ struct FrameReceiverConfig {
int rtp_max_delay_ms; // TODO(miu): Change to TimeDelta target_playout_delay.
// RTP payload type enum: Specifies the type/encoding of frame data.
- int rtp_payload_type;
+ RtpPayloadType rtp_payload_type;
// RTP timebase: The number of RTP units advanced per one second. For audio,
// this is the sampling rate. For video, by convention, this is 90 kHz.
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.cc ('k') | media/cast/cast_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698