dbus_message_iter_append_basic(&msg_iter, DBUS_TYPE_INT32, ¶m->nfrags);
dbus_message_iter_append_basic(&msg_iter, DBUS_TYPE_STRING, &ptr1);
dbus_message_iter_append_basic(&msg_iter, DBUS_TYPE_STRING, &ptr2);
- dbus_connection_send(conn, reply, NULL);
+ if (!dbus_connection_send(conn, reply, NULL))
+ pa_log_error("reply send error!");
dbus_message_unref(reply);
}
r = dbus_message_new_method_return(m);
if (r) {
const char *xml = AEC_MANAGER_INTROSPECT_XML;
- dbus_message_append_args(r, DBUS_TYPE_STRING, &xml, DBUS_TYPE_INVALID);
- dbus_connection_send((conn), r, NULL);
+ if (dbus_message_append_args(r, DBUS_TYPE_STRING, &xml, DBUS_TYPE_INVALID)) {
+ if (!dbus_connection_send(conn, r, NULL))
+ pa_log_error("reply send error!");
+ } else {
+ pa_log_error("args append error!");
+ }
+
dbus_message_unref(r);
}
} else {
u->small_avail_count++;
if ((u->small_avail_count % SMALL_AVAIL_LOG_PERIOD) == 0)
- pa_log_error("avail is too small : %u(repeat count : %llu)", avail, u->small_avail_count);
+ pa_log_error("avail is too small : %u(repeat count : %" PRIu64 ")", avail, u->small_avail_count);
break;
}
if (is_connected) {
uint32_t preemptive_device_id = 0;
if (!pa_stream_manager_get_preemptive_device_id(m, stream_type, stream_role, &preemptive_device_id)) {
- pa_tz_device *device = pa_device_manager_get_device_by_id(m->dm, preemptive_device_id);
- if (device) {
+ pa_tz_device *_device = pa_device_manager_get_device_by_id(m->dm, preemptive_device_id);
+ if (_device) {
pa_log_debug("Skip moving this stream[%s, idx:%u] set to the preemptive device(%s, id:%u)", stream_role,
(stream_type == STREAM_SINK_INPUT) ? PA_SINK_INPUT(s)->index : PA_SOURCE_OUTPUT(s)->index,
- device->type, preemptive_device_id);
+ _device->type, preemptive_device_id);
continue;
}
}