summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-20 15:27:35 +0000
committerpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-20 15:27:35 +0000
commitf0a119fa99a8c384c30f3eb049c54091a6a1a828 (patch)
tree12c09648dd1a928bf76e5cc3b70ea9fb30f654da /config.h
parent254879d7e969771c28d0882582e02b1a0b0eeb14 (diff)
downloadwebrtc-f0a119fa99a8c384c30f3eb049c54091a6a1a828.tar.gz
Check before send/receive rtp header extensions.
BUG=1788 R=pbos@webrtc.org, tommi@webrtc.org, wu@webrtc.org Review URL: https://webrtc-codereview.appspot.com/13949004 Patch from Changbin Shao <changbin.shao@intel.com>. git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6744 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'config.h')
-rw-r--r--config.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/config.h b/config.h
index 2e96ec1c..e4bccf90 100644
--- a/config.h
+++ b/config.h
@@ -10,8 +10,8 @@
// TODO(pbos): Move Config from common.h to here.
-#ifndef WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_CONFIG_H_
-#define WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_CONFIG_H_
+#ifndef WEBRTC_CONFIG_H_
+#define WEBRTC_CONFIG_H_
#include <string>
#include <vector>
@@ -73,9 +73,10 @@ struct FecConfig {
// RTP header extension to use for the video stream, see RFC 5285.
struct RtpExtension {
- RtpExtension(const char* name, int id) : name(name), id(id) {}
+ RtpExtension(const std::string& name, int id) : name(name), id(id) {}
std::string ToString() const;
- // TODO(mflodman) Add API to query supported extensions.
+ static bool IsSupported(const std::string& name);
+
static const char* kTOffset;
static const char* kAbsSendTime;
std::string name;
@@ -109,4 +110,4 @@ struct VideoStream {
} // namespace webrtc
-#endif // WEBRTC_VIDEO_ENGINE_NEW_INCLUDE_CONFIG_H_
+#endif // WEBRTC_CONFIG_H_