aboutsummaryrefslogtreecommitdiff
path: root/webrtc/config.cc
diff options
context:
space:
mode:
authorErik Språng <sprang@google.com>2015-04-28 10:01:41 +0200
committerErik Språng <sprang@google.com>2015-04-28 08:01:14 +0000
commit143cec1cc68b9ba44f3ef4467f1422704f2395f0 (patch)
treeb539987785b526e271dae3cb5f0b1c672b7d3db4 /webrtc/config.cc
parente8a197bd071ed08a90ca455370d4da909025861a (diff)
downloadwebrtc-143cec1cc68b9ba44f3ef4467f1422704f2395f0.tar.gz
Set correct encoder-specific settings for vpx in the new API.
Also, make VideoEncoderConfig::ContentType an enum class. BUG=4569 R=mflodman@webrtc.org, pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/46069004 Cr-Commit-Position: refs/heads/master@{#9093}
Diffstat (limited to 'webrtc/config.cc')
-rw-r--r--webrtc/config.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/webrtc/config.cc b/webrtc/config.cc
index 7b75a68de8..7dfecd1507 100644
--- a/webrtc/config.cc
+++ b/webrtc/config.cc
@@ -63,9 +63,10 @@ std::string VideoStream::ToString() const {
}
VideoEncoderConfig::VideoEncoderConfig()
- : content_type(kRealtimeVideo),
+ : content_type(ContentType::kRealtimeVideo),
encoder_specific_settings(NULL),
- min_transmit_bitrate_bps(0) {}
+ min_transmit_bitrate_bps(0) {
+}
VideoEncoderConfig::~VideoEncoderConfig() = default;
@@ -81,10 +82,10 @@ std::string VideoEncoderConfig::ToString() const {
ss << ']';
ss << ", content_type: ";
switch (content_type) {
- case kRealtimeVideo:
+ case ContentType::kRealtimeVideo:
ss << "kRealtimeVideo";
break;
- case kScreenshare:
+ case ContentType::kScreen:
ss << "kScreenshare";
break;
}