mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-15 01:56:40 +02:00
fix compile error
This commit is contained in:
parent
a30f548a31
commit
7db583f733
2 changed files with 8 additions and 8 deletions
|
@ -254,7 +254,7 @@ void StreamServer::ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcp
|
|||
/// Request: {"id":6,"jsonrpc":"2.0","method":"Group.SetName","params":{"id":"4dcc4e3b-c699-a04b-7f0c-8260d23c43e1","name":"Laptop"}}
|
||||
/// Response: {"id":6,"jsonrpc":"2.0","result":{"name":"MediaPlayer"}}
|
||||
/// Notification: {"jsonrpc":"2.0","method":"Group.OnNameChanged","params":{"id":"4dcc4e3b-c699-a04b-7f0c-8260d23c43e1","MediaPlayer":"Laptop"}}
|
||||
group->name = request->params().get("name");
|
||||
group->name = request->params().get<std::string>("name");
|
||||
result["name"] = group->name;
|
||||
notification.reset(new jsonrpcpp::Notification("Group.OnNameChanged", jsonrpcpp::Parameter("id", group->id, "name", group->name)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue