diff options
| author | Lennart Poettering <lennart@poettering.net> | 2009-02-13 00:14:48 +0200 | 
|---|---|---|
| committer | Marc-André Lureau <marc-andre.lureau@nokia.com> | 2009-02-16 14:17:02 +0200 | 
| commit | 0b8a6c66dc0dec79110f40ffa6ee791b4c557ca8 (patch) | |
| tree | f594d8d213f654cfc70f0dbb63c4a9084b19be8e | |
| parent | a571565f86a34d4ce4f16669c021be92494e132d (diff) | |
bluetooth: fix message queue/rtpoll
| -rw-r--r-- | src/modules/bluetooth/module-bluetooth-device.c | 16 | 
1 files changed, 8 insertions, 8 deletions
| diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c index 6daae83c..35338dcf 100644 --- a/src/modules/bluetooth/module-bluetooth-device.c +++ b/src/modules/bluetooth/module-bluetooth-device.c @@ -1349,9 +1349,6 @@ static int add_sink(struct userdata *u) {          u->sink->userdata = u;          u->sink->parent.process_msg = sink_process_msg; - -        pa_sink_set_asyncmsgq(u->sink, u->thread_mq.inq); -        pa_sink_set_rtpoll(u->sink, u->rtpoll);      }  /*     u->sink->get_volume = sink_get_volume_cb; */ @@ -1396,9 +1393,6 @@ static int add_source(struct userdata *u) {          u->source->userdata = u;          u->source->parent.process_msg = source_process_msg; - -        pa_source_set_asyncmsgq(u->source, u->thread_mq.inq); -        pa_source_set_rtpoll(u->source, u->rtpoll);      }  /*     u->source->get_volume = source_get_volume_cb; */ @@ -1559,11 +1553,17 @@ static int start_thread(struct userdata *u) {          return -1;      } -    if (u->sink) +    if (u->sink) { +        pa_sink_set_asyncmsgq(u->sink, u->thread_mq.inq); +        pa_sink_set_rtpoll(u->sink, u->rtpoll);          pa_sink_put(u->sink); +    } -    if (u->source) +    if (u->source) { +        pa_source_set_asyncmsgq(u->source, u->thread_mq.inq); +        pa_source_set_rtpoll(u->source, u->rtpoll);          pa_source_put(u->source); +    }      return 0;  } | 
