[pulseaudio-discuss] [PATCH v2 08/12] modules: Use pa_assert_se() to check return value of dbus_message_iter_close_container()

Peter Meerwald pmeerw at pmeerw.net
Tue Sep 15 15:01:46 PDT 2015


From: Peter Meerwald <p.meerwald at bct-electronic.com>

CID 1140353

... as it is done everythere else
---
 src/modules/module-ladspa-sink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/module-ladspa-sink.c b/src/modules/module-ladspa-sink.c
index 38b94e3..0cad15e 100644
--- a/src/modules/module-ladspa-sink.c
+++ b/src/modules/module-ladspa-sink.c
@@ -166,7 +166,7 @@ static void get_algorithm_parameters(DBusConnection *conn, DBusMessage *msg, voi
     pa_dbus_append_basic_array(&struct_iter, DBUS_TYPE_DOUBLE, control, u->n_control);
     pa_dbus_append_basic_array(&struct_iter, DBUS_TYPE_BOOLEAN, use_default, u->n_control);
 
-    dbus_message_iter_close_container(&msg_iter, &struct_iter);
+    pa_assert_se(dbus_message_iter_close_container(&msg_iter, &struct_iter));
 
     pa_assert_se(dbus_connection_send(conn, reply, NULL));
 
-- 
1.9.1



More information about the pulseaudio-discuss mailing list