mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-13 09:06:43 +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) {
|
||||
LOG(INFO, LOG_TAG) << "Response for Plugin.Stream.Player.GetProperties: " << response.to_json() << "\n";
|
||||
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) {
|
||||
LOG(INFO, LOG_TAG) << "Response for Plugin.Stream.Player.GetMetadata: " << response.to_json() << "\n";
|
||||
if (response.error().code() == 0)
|
||||
setProperties(response.result());
|
||||
setMeta(response.result());
|
||||
});
|
||||
}
|
||||
else if (notification.method() == "Plugin.Stream.Log")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue