Skip to content

core: send subscription events when the configured default sink or source changes

Tanu Kaskinen requested to merge tanuk/pulseaudio:fix-default-device-file into master

These events were missing, because the pa_core_update_default_sink/source() calls were assumed to send the subscription events when necessary. Often that indeed is the case, but if the current configured default sink doesn't exist, and then the current default sink is set as the configured default sink, the configured default sink changes but the default sink doesn't, and in this case pa_core_update_default_sink() doesn't send the change event.

module-default-device-restore relies on getting a notification whenever the configured default sink changes, and the missing event meant that the files containing the configured sink and source weren't updated in some cases.

Fixes: #648 (closed)

Merge request reports