mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 08:06:41 +02:00
Typo in stream id json rpc, named as stream_id, should have been just id
This commit is contained in:
parent
cf7accf704
commit
df57bff4a4
1 changed files with 2 additions and 2 deletions
|
@ -394,7 +394,7 @@ void StreamServer::ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcp
|
|||
LOG(INFO) << "Stream.SetMeta(" << request->params.get("stream_id") << ")" << request->params.get("meta") <<"\n";
|
||||
|
||||
// Find stream
|
||||
string streamId = request->params.get("stream_id");
|
||||
string streamId = request->params.get("id");
|
||||
PcmStreamPtr stream = streamManager_->getStream(streamId);
|
||||
if (stream == nullptr)
|
||||
throw jsonrpcpp::InternalErrorException("Stream not found", request->id);
|
||||
|
@ -403,7 +403,7 @@ void StreamServer::ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcp
|
|||
stream->setMeta(request->params.get("meta"));
|
||||
|
||||
// Setup response
|
||||
result["stream_id"] = streamId;
|
||||
result["id"] = streamId;
|
||||
}
|
||||
else
|
||||
throw jsonrpcpp::MethodNotFoundException(request->id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue