audio: Don't recreate mpris proxies and streams

Fixes https://github.com/pop-os/cosmic-applets/issues/306 and should
overall be more correct and performant.
This commit is contained in:
Ian Douglas Scott 2024-04-03 20:45:30 -07:00 committed by Michael Murphy
parent 56d3a754e2
commit 1475f8f32b
3 changed files with 168 additions and 172 deletions

13
Cargo.lock generated
View file

@ -1179,7 +1179,7 @@ dependencies = [
[[package]]
name = "cosmic-dbus-networkmanager"
version = "0.1.0"
source = "git+https://github.com/pop-os/dbus-settings-bindings#8b9767f6cedede2def12941ce89e14bfcd913aeb"
source = "git+https://github.com/pop-os/dbus-settings-bindings#c81f428acec4c8633efb62b4f8284202dad9a492"
dependencies = [
"bitflags 2.5.0",
"derive_builder",
@ -3534,8 +3534,9 @@ dependencies = [
[[package]]
name = "mpris2-zbus"
version = "0.1.0"
source = "git+https://github.com/pop-os/dbus-settings-bindings#8b9767f6cedede2def12941ce89e14bfcd913aeb"
source = "git+https://github.com/pop-os/dbus-settings-bindings#c81f428acec4c8633efb62b4f8284202dad9a492"
dependencies = [
"futures-util",
"serde",
"thiserror",
"time",
@ -4943,7 +4944,7 @@ dependencies = [
[[package]]
name = "switcheroo-control"
version = "0.1.0"
source = "git+https://github.com/pop-os/dbus-settings-bindings#8b9767f6cedede2def12941ce89e14bfcd913aeb"
source = "git+https://github.com/pop-os/dbus-settings-bindings#c81f428acec4c8633efb62b4f8284202dad9a492"
dependencies = [
"zbus",
]
@ -5842,7 +5843,7 @@ dependencies = [
"js-sys",
"log",
"naga",
"parking_lot 0.12.1",
"parking_lot 0.11.2",
"profiling",
"raw-window-handle 0.6.0",
"smallvec",
@ -5869,7 +5870,7 @@ dependencies = [
"log",
"naga",
"once_cell",
"parking_lot 0.12.1",
"parking_lot 0.11.2",
"profiling",
"raw-window-handle 0.6.0",
"rustc-hash",
@ -5909,7 +5910,7 @@ dependencies = [
"naga",
"objc",
"once_cell",
"parking_lot 0.12.1",
"parking_lot 0.11.2",
"profiling",
"range-alloc",
"raw-window-handle 0.6.0",