[pulseaudio-commits] Branch 'next' - src/modules
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Fri Mar 29 08:18:45 PDT 2013
src/modules/alsa/alsa-ucm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 57d859d3873f8f6bded1a64d2f49b9e072dc992d
Author: Tanu Kaskinen <tanuk at iki.fi>
Date: Fri Mar 29 17:17:14 2013 +0200
alsa: Don't use pa_strna() for port names
The name variable is never NULL, so there's no point in using
pa_strna().
diff --git a/src/modules/alsa/alsa-ucm.c b/src/modules/alsa/alsa-ucm.c
index d8ff621..3b55e82 100644
--- a/src/modules/alsa/alsa-ucm.c
+++ b/src/modules/alsa/alsa-ucm.c
@@ -691,7 +691,7 @@ static void ucm_add_port_combination(
pa_device_port_new_data port_data;
pa_device_port_new_data_init(&port_data);
- pa_device_port_new_data_set_name(&port_data, pa_strna(name));
+ pa_device_port_new_data_set_name(&port_data, name);
pa_device_port_new_data_set_description(&port_data, desc);
pa_device_port_new_data_set_direction(&port_data, is_sink ? PA_DIRECTION_OUTPUT : PA_DIRECTION_INPUT);
More information about the pulseaudio-commits
mailing list