From: Tanu Kaskinen Date: Thu, 1 Apr 2010 08:17:52 +0000 (+0300) Subject: stream-restore: Fix segfaulting. The dbus entry callbacks expect a dbus_entry pointer... X-Git-Tag: submit/2.0-panda/20130828.192557~999^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c161115288901b521c0465685d0ea3c307da763d;p=profile%2Fivi%2Fpulseaudio-panda.git stream-restore: Fix segfaulting. The dbus entry callbacks expect a dbus_entry pointer instead of a userdata pointer. --- diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c index c16a74c..d7852d0 100644 --- a/src/modules/module-stream-restore.c +++ b/src/modules/module-stream-restore.c @@ -310,7 +310,7 @@ static struct dbus_entry *dbus_entry_new(struct userdata *u, const char *entry_n de->index = u->next_index++; de->object_path = pa_sprintf_malloc("%s/%s%u", OBJECT_PATH, ENTRY_OBJECT_NAME, de->index); - pa_assert_se(pa_dbus_protocol_add_interface(u->dbus_protocol, de->object_path, &entry_interface_info, u) >= 0); + pa_assert_se(pa_dbus_protocol_add_interface(u->dbus_protocol, de->object_path, &entry_interface_info, de) >= 0); return de; }