From: Lennart Poettering Date: Fri, 10 Aug 2007 00:29:28 +0000 (+0000) Subject: handle ACLAdded messages for previously unknown devices identically to a really new... X-Git-Tag: 1.0_branch~2762^2~1^2~356 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1e5ca51016de2b6ea6f9aa8b23e00d62a851b541;p=profile%2Fivi%2Fpulseaudio.git handle ACLAdded messages for previously unknown devices identically to a really new device git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1612 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/modules/module-hal-detect.c b/src/modules/module-hal-detect.c index 39d8a44..ed21f4d 100644 --- a/src/modules/module-hal-detect.c +++ b/src/modules/module-hal-detect.c @@ -503,7 +503,6 @@ static void lost_capability_cb(LibHalContext *context, const char *udi, const ch device_removed_cb(context, udi); } - static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *message, void *userdata) { struct userdata*u = userdata; DBusError error; @@ -565,7 +564,7 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *message, vo } } else if (!suspend) - hal_device_add(u, udi); + device_added_cb(u->context, udi); } } else if (dbus_message_is_signal(message, "org.pulseaudio.Server", "DirtyGiveUpMessage")) { @@ -605,7 +604,7 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *message, vo } else /* Yes, we don't check the UDI for validity, but hopefully HAL will */ - hal_device_add(u, udi); + device_added_cb(u->context, udi); } finish: