mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-15 01:56:40 +02:00
Fix update of swapped props/meta data
This commit is contained in:
parent
a7baec9373
commit
0807641984
1 changed files with 2 additions and 2 deletions
|
@ -280,12 +280,12 @@ void PcmStream::onControlNotification(const jsonrpcpp::Notification& notificatio
|
||||||
ctrl_script_->send({++req_id_, "Plugin.Stream.Player.GetProperties"}, [this](const jsonrpcpp::Response& response) {
|
ctrl_script_->send({++req_id_, "Plugin.Stream.Player.GetProperties"}, [this](const jsonrpcpp::Response& response) {
|
||||||
LOG(INFO, LOG_TAG) << "Response for Plugin.Stream.Player.GetProperties: " << response.to_json() << "\n";
|
LOG(INFO, LOG_TAG) << "Response for Plugin.Stream.Player.GetProperties: " << response.to_json() << "\n";
|
||||||
if (response.error().code() == 0)
|
if (response.error().code() == 0)
|
||||||
setMeta(response.result());
|
setProperties(response.result());
|
||||||
});
|
});
|
||||||
ctrl_script_->send({++req_id_, "Plugin.Stream.Player.GetMetadata"}, [this](const jsonrpcpp::Response& response) {
|
ctrl_script_->send({++req_id_, "Plugin.Stream.Player.GetMetadata"}, [this](const jsonrpcpp::Response& response) {
|
||||||
LOG(INFO, LOG_TAG) << "Response for Plugin.Stream.Player.GetMetadata: " << response.to_json() << "\n";
|
LOG(INFO, LOG_TAG) << "Response for Plugin.Stream.Player.GetMetadata: " << response.to_json() << "\n";
|
||||||
if (response.error().code() == 0)
|
if (response.error().code() == 0)
|
||||||
setProperties(response.result());
|
setMeta(response.result());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if (notification.method() == "Plugin.Stream.Log")
|
else if (notification.method() == "Plugin.Stream.Log")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue