From: Marc-André Lureau Date: Thu, 19 Mar 2009 14:55:14 +0000 (+0200) Subject: bluetooth: mark info_valid when receive Connected X-Git-Tag: 1.0_branch~2003^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f1daa282f030e4e2381341e0f65faca47c4b891b;p=profile%2Fivi%2Fpulseaudio.git bluetooth: mark info_valid when receive Connected Sometime, we receive the connected signal before GetProperties reply. --- diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c index 9e30f89..5213ad6 100644 --- a/src/modules/bluetooth/bluetooth-util.c +++ b/src/modules/bluetooth/bluetooth-util.c @@ -653,10 +653,12 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us } else if (dbus_message_has_interface(m, "org.bluez.Headset")) { if (parse_audio_property(y, &d->headset_connected, &arg_i) < 0) goto fail; + d->headset_info_valid = 1; } else if (dbus_message_has_interface(m, "org.bluez.AudioSink")) { if (parse_audio_property(y, &d->audio_sink_connected, &arg_i) < 0) goto fail; + d->audio_sink_info_valid = 1; } pa_assert_se(y->mode == MODE_DISCOVER);