From b07a6e464985ee6548dc614e7aee0babf2182a7a Mon Sep 17 00:00:00 2001 From: Nicolai Syvertsen Date: Wed, 26 Jun 2024 17:01:40 +0200 Subject: [PATCH] Actually send new channelVolumes. --- src/backend/pwnodeobject/mixerapi.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/backend/pwnodeobject/mixerapi.rs b/src/backend/pwnodeobject/mixerapi.rs index 23370db..ee85c9a 100644 --- a/src/backend/pwnodeobject/mixerapi.rs +++ b/src/backend/pwnodeobject/mixerapi.rs @@ -25,8 +25,7 @@ impl PwNodeObject { } pub(crate) fn send_volume_using_mixerapi(&self, what: PropertyChanged) { - let imp = self.imp(); - let node = imp.wpnode.get().expect("node in send_volume"); + let node = self.wpnode(); let manager = PwvucontrolManager::default(); let mixerapi = manager.mixer_api(); let bound_id = node.bound_id(); @@ -58,7 +57,7 @@ impl PwNodeObject { *v = max; } } - if let Some(cv) = self.make_channel_volumes_variant(&self.channel_volumes_vec()) { + if let Some(cv) = self.make_channel_volumes_variant(&channel_volumes) { variant.insert("channelVolumes", cv); } self.set_channel_volumes_vec_no_send(&channel_volumes);