Skip to content

Commit

Permalink
Merge pull request #425 from garethsb/patch-7
Browse files Browse the repository at this point in the history
"caps" is required for all Receivers
  • Loading branch information
lo-simon authored Jan 7, 2025
2 parents 5529066 + f6099a2 commit 0af3b66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Development/nmos/node_resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,9 +587,11 @@ namespace nmos
auto& data = resource.data;

data[U("format")] = value::string(format.name);
auto& caps = data[U("caps")] = value::object();

for (const auto& media_type : media_types)
{
web::json::push_back(data[U("caps")][U("media_types")], value::string(media_type.name));
web::json::push_back(caps[U("media_types")], value::string(media_type.name));
}

return resource;
Expand Down

0 comments on commit 0af3b66

Please sign in to comment.