Skip to content

Commit 36e9df0

Browse files
committed
BSE: bsebus: avoid chained assignment
Signed-off-by: Stefan Westerfeld <stefan@space.twc.de>
1 parent 446a37c commit 36e9df0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bse/bsebus.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,10 @@ BusImpl::sync (bool val)
959959

960960
self->synced = val;
961961
if (self->synced)
962-
self->right_volume = self->left_volume = center_volume (self->right_volume, self->left_volume);
962+
{
963+
self->left_volume = center_volume (self->right_volume, self->left_volume);
964+
self->right_volume = self->left_volume;
965+
}
963966
bus_volume_changed (self);
964967

965968
notify ("left_volume");

0 commit comments

Comments
 (0)