From: Lennart Poettering Date: Sat, 15 Aug 2009 22:43:22 +0000 (+0200) Subject: bluetooth: move installation of mq's earlier to avoid context asserts to be triggered X-Git-Tag: 1.0_branch~1439 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a39663ab61614982c52e244bde596dcc1a08f37;p=profile%2Fivi%2Fpulseaudio.git bluetooth: move installation of mq's earlier to avoid context asserts to be triggered --- diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 5f119c7..d6321fc 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -1262,11 +1262,11 @@ static void thread_func(void *userdata) { if (u->core->realtime_scheduling) pa_make_realtime(u->core->realtime_priority); + pa_thread_mq_install(&u->thread_mq); + if (start_stream_fd(u) < 0) goto fail; - pa_thread_mq_install(&u->thread_mq); - for (;;) { struct pollfd *pollfd; int ret;