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

Unified Diff: webrtc/common_types.h

Issue 2509273002: Unify VideoCodecType to/from string functionality (Closed)
Patch Set: Created 4 years, 1 month 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/common_types.h
diff --git a/webrtc/common_types.h b/webrtc/common_types.h
index 77c009cd9d807bf129ea6bc55ad1510d04f156a3..decb56e3c098615dc33f3699cfcca5b7b1683c6a 100644
--- a/webrtc/common_types.h
+++ b/webrtc/common_types.h
@@ -565,7 +565,7 @@ enum VideoCodecType {
};
// Translates from name of codec to codec type and vice versa.
-rtc::Optional<std::string> CodecTypeToPayloadName(VideoCodecType type);
+rtc::Optional<const char*> CodecTypeToPayloadName(VideoCodecType type);
rtc::Optional<VideoCodecType> PayloadNameToCodecType(const std::string& name);
union VideoCodecUnion {

Powered by Google App Engine
This is Rietveld 408576698