Index: webrtc/api/mediatypes.h |
diff --git a/webrtc/api/mediatypes.h b/webrtc/api/mediatypes.h |
index 19acf4b94edd1a9d6d3dcdd408b0a70bb0040636..ec3a70a5e83e1fbf8969c60b73c110b4e6da1d9c 100644 |
--- a/webrtc/api/mediatypes.h |
+++ b/webrtc/api/mediatypes.h |
@@ -22,6 +22,9 @@ enum MediaType { |
}; |
std::string MediaTypeToString(MediaType type); |
+// Aborts on invalid string. Only expected to be used on strings that are |
+// guaranteed to be valid, such as MediaStreamTrackInterface::kind(). |
+MediaType MediaTypeFromString(const std::string& type_str); |
} // namespace cricket |