mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
stream-restore: Forget pre-14.0 stream routing
Prior to commitsf899d5f466andf62a49b8cf, GNOME's sound settings overwrote the routing for all entries in the stream-restore database when selecting a device. Now we prevent that from happening (see the aforementioned commits), but the old overwritten settings can still be in the database after updating to PulseAudio 14.0, and they can cause problems, as documented here: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/832 We can't distinguish between devices set by GNOME's sound settings and devices set by the user, so this patch discards all old device settings, even though that is going to cause PulseAudio to forget routing settings for many users. This is less bad than keeping the incorrect routing settings in the database, because it's difficult for users to figure out how to fix the situation when e.g. speaker test tones go to the internal speakers no matter what device is selected as the default, whereas old manual configuration can be restored restored by doing the manual configuration again. Also, it's probably more common to have at some point changed the default device in GNOME's sound settings than it is to have any manual per-stream routing settings. This is disabled by default, because this causes data loss, but distributions that use GNOME are recommended to enable this with the --enable-stream-restore-clear-old-devices (Autotools) or -Dstream-restore-clear-old-devices=true (Meson) build option. Fixes: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/832
This commit is contained in:
parent
2ac2b445fc
commit
1fe37e6d4b
4 changed files with 59 additions and 1 deletions
|
|
@ -522,6 +522,10 @@ if get_option('legacy-database-entry-format')
|
|||
cdata.set('ENABLE_LEGACY_DATABASE_ENTRY_FORMAT', 1)
|
||||
endif
|
||||
|
||||
if get_option('stream-restore-clear-old-devices')
|
||||
cdata.set('STREAM_RESTORE_CLEAR_OLD_DEVICES', 1)
|
||||
endif
|
||||
|
||||
if get_option('running-from-build-tree')
|
||||
cdata.set('HAVE_RUNNING_FROM_BUILD_TREE', 1)
|
||||
endif
|
||||
|
|
@ -835,6 +839,8 @@ summary = [
|
|||
'',
|
||||
'Database: @0@'.format(get_option('database')),
|
||||
'Legacy Database Entry Support: @0@'.format(get_option('legacy-database-entry-format')),
|
||||
'module-stream-restore:',
|
||||
' Clear old devices: @0@'.format(get_option('stream-restore-clear-old-devices')),
|
||||
'Running from build tree: @0@'.format(get_option('running-from-build-tree')),
|
||||
'System User: @0@'.format(cdata.get_unquoted('PA_SYSTEM_USER')),
|
||||
'System Group: @0@'.format(cdata.get_unquoted('PA_SYSTEM_GROUP')),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue