core: change configured_default_sink/source type to string
authorTanu Kaskinen <tanuk@iki.fi>
Thu, 29 Jun 2017 21:09:34 +0000 (00:09 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 17 Jul 2017 16:41:03 +0000 (19:41 +0300)
commita448cc587c203bba42b1b9805317088e95775f71
tree1d4e594c5772be81498c1967cd210c621c1bff08
parentabdd14d5e02204df411946751b206c07a3ea798b
core: change configured_default_sink/source type to string

This allows us to restore the default device properly when a
hotpluggable device (e.g. a USB sound card) is set as the default, but
unplugged temporarily. Previously we would forget that the unplugged
device was ever set as the default, because we had to set
configured_default_sink to NULL to avoid having a stale pa_sink pointer,
and also because module-default-device-restore couldn't resolve the name
of a currently-unplugged device to a pa_sink pointer.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=89934
src/modules/dbus/iface-core.c
src/modules/module-default-device-restore.c
src/modules/module-switch-on-connect.c
src/pulsecore/cli-command.c
src/pulsecore/core.c
src/pulsecore/core.h
src/pulsecore/protocol-native.c
src/pulsecore/sink.c
src/pulsecore/source.c