aboutsummaryrefslogtreecommitdiff
path: root/cast/streaming/offer_messages.cc
diff options
context:
space:
mode:
Diffstat (limited to 'cast/streaming/offer_messages.cc')
-rw-r--r--cast/streaming/offer_messages.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/cast/streaming/offer_messages.cc b/cast/streaming/offer_messages.cc
index f438d9be..ad88e82e 100644
--- a/cast/streaming/offer_messages.cc
+++ b/cast/streaming/offer_messages.cc
@@ -315,6 +315,11 @@ bool VideoStream::IsValid() const {
}
// static
+Error Offer::Parse(const Json::Value& root, Offer* out) {
+ return TryParse(root, out);
+}
+
+// static
Error Offer::TryParse(const Json::Value& root, Offer* out) {
if (!root.isObject()) {
return Error(Error::Code::kJsonParseError, "null offer");