]> code.delx.au - pulseaudio/commit
sink, source: Always create a hashmap for ports.
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 8 Jun 2012 18:49:09 +0000 (21:49 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 29 Jun 2012 11:24:43 +0000 (14:24 +0300)
commit1a6da64b16ae6aacb1af195275883b88c596a960
tree483a56bade970c353c5e271b4b055f8ba2789731
parent21c6c704383d38125c8208711f292427ac4544ca
sink, source: Always create a hashmap for ports.

Having the hashmap sometimes NULL requires a lot of checking
here and there, so ensuring that the hashmap is always
non-NULL simplifies the code.
src/modules/alsa/alsa-mixer.c
src/modules/alsa/alsa-mixer.h
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/modules/bluetooth/module-bluetooth-device.c
src/modules/dbus/iface-device.c
src/modules/module-switch-on-port-available.c
src/pulsecore/protocol-native.c
src/pulsecore/sink.c
src/pulsecore/source.c