gnome-control-center/panels/sound
Jonas Dreßler 4afd08e234 sound: Don't call gvc_mixer_control_open() twice
Unfortunately I sneaked in a move of the gvc_mixer_control_open() call from
earlier in the function to the end of the function with commit 2152899354.

That change didn't actually move the call though, but introduced a second
call instead, leading to a critical error on opening of the sound panel.

Fix it by removing the first call to gvc_mixer_control_open() and keeping
the second one around. We want to keep the second one instead of the earlier
one because the signal handlers should be connected before we initialize gvc
and it connects to pulse, emitting all the input/output-added signals etc.

The reason why this wasn't broken before was likely because the connection
to pulse happens async, and therefore the initial emission of the signals
would effectively still have happened after we connected our handlers.

Fwiw, calling gvc_mixer_control_open() after
cc_volume_slider_set_mixer_control(), cc_subwoofer_slider_set_mixer_control()
and cc_device_combo_box_set_mixer_control() is not a problem, as those
functions all call into gvc to get static values (and as explained above,
at this point gvc wouldn't have established connection to pulse anyway).

Reported-by: Matthijs Velsink <mvelsink@gnome.org>

Fixes: 2152899354 ("sound: Listen to signals from GvcMixerControl only in sound panel")
2024-03-12 22:39:14 +00:00
..
icons Update and clean up symbolic icon assets 2024-02-10 16:17:35 +00:00
sounds sound: Make bass audible on low quality hardware 2023-03-16 11:53:29 +00:00
cc-alert-chooser-window.c sound: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
cc-alert-chooser-window.h sound: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
cc-alert-chooser-window.ui alert-chooser-dialog: Show radio buttons as prefix widgets 2024-02-08 10:00:16 +00:00
cc-balance-slider.c sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-balance-slider.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-balance-slider.ui sound: Cleanup CcBalanceSlider XML and remove marks 2023-01-09 21:03:41 +00:00
cc-device-combo-box.c sound: Unset active entry on the device comboBox when there's no active device 2024-03-12 08:33:58 +00:00
cc-device-combo-box.h sound: Listen to signals from GvcMixerControl only in sound panel 2024-03-12 08:33:58 +00:00
cc-device-combo-box.ui sound: Make the panel adaptive 2019-02-18 15:12:53 +01:00
cc-fade-slider.c sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-fade-slider.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-fade-slider.ui sound: Cleanup CcFadeSlider XML and remove marks 2023-01-09 21:03:41 +00:00
cc-level-bar.c sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-level-bar.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-output-test-wheel.c sound: fix compiler warning 2023-12-11 15:12:00 +00:00
cc-output-test-wheel.h sound: Implement the new output test design 2022-12-21 19:29:58 +00:00
cc-output-test-window.c sound: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
cc-output-test-window.h sound: Implement the new output test design 2022-12-21 19:29:58 +00:00
cc-output-test-window.ui sound: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
cc-profile-combo-box.c sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-profile-combo-box.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-profile-combo-box.ui sound: ellipsize in profile combo box 2023-08-07 10:54:16 +00:00
cc-sound-enums.h sounds: Use correct mute icon in the input section 2019-06-16 01:01:36 +00:00
cc-sound-panel.c sound: Don't call gvc_mixer_control_open() twice 2024-03-12 22:39:14 +00:00
cc-sound-panel.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-sound-panel.ui sound: Port some rows to CcListRow 2024-02-22 09:48:09 +00:00
cc-speaker-test-button.c sound: Add tooltips to all speaker test buttons 2024-02-08 01:44:59 -03:00
cc-speaker-test-button.h sound: Add tooltips to all speaker test buttons 2024-02-08 01:44:59 -03:00
cc-stream-row.c sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-stream-row.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-stream-row.ui sound: Add .lowres-icon to CcStreamRow app icons 2023-01-30 10:50:11 +00:00
cc-subwoofer-slider.c sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-subwoofer-slider.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-subwoofer-slider.ui sound: Cleanup CcSubwooferSlider XML 2023-01-09 21:03:41 +00:00
cc-volume-levels-window.c sound: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
cc-volume-levels-window.h sound: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
cc-volume-levels-window.ui sound: Port dialogs to AdwWindow and AdwToolbarView 2023-08-25 08:00:43 +00:00
cc-volume-slider.c sound: When setting mixer control for a stream row, update muted state as well 2023-11-15 15:28:20 +00:00
cc-volume-slider.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
cc-volume-slider.ui sound: Fix accessibility issues for the mute button 2023-11-13 12:49:04 +00:00
gnome-sound-panel.desktop.in desktop: Remove obsolete Bugzilla entries 2022-10-20 13:20:09 +00:00
gvc-mixer-stream-private.h sound: Remove modelines at the top of the files 2023-01-16 20:53:56 +01:00
meson.build all: meson: do not specify resources from gresource files as dependencies 2023-05-24 08:34:14 +00:00
output-test-wheel.css sound: make output test wheel smaller 2023-08-07 10:54:16 +00:00
sound.gresource.xml sound: Move alert chooser to a separate window 2023-01-16 19:43:53 +00:00