Return the streams response to "SetProperty"

This commit is contained in:
badaix 2021-06-17 12:24:03 +02:00
parent 640b05db7d
commit 4c2636f358
3 changed files with 16 additions and 17 deletions

View file

@ -492,7 +492,6 @@ void PcmStream::setProperty(const jsonrpcpp::Request& request, const CtrlScript:
void PcmStream::control(const jsonrpcpp::Request& request, const CtrlScript::OnResponse& response_handler)
{
std::string command = request.params().get("command");
static std::set<std::string> supported_commands{"Next", "Previous", "Pause", "PlayPause", "Stop", "Play", "Seek", "SetPosition"};
if ((supported_commands.find(command) == supported_commands.end()) ||