[pulseaudio-discuss] [PATCH v0 09/16] bluetooth: Move streams during shutdown

Mikel Astiz mikel.astiz.oss at gmail.com
Fri Sep 28 08:45:33 PDT 2012


From: Mikel Astiz <mikel.astiz at bmw-carit.de>

If sink and sources exist during shutdown, the streams need to be moved
exactly as when the profile is being set to off.
---
 src/modules/bluetooth/module-bluetooth-device.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index badf296..dd255e9 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -2688,13 +2688,16 @@ int pa__get_n_used(pa_module *m) {
 
 void pa__done(pa_module *m) {
     struct userdata *u;
+    pa_queue *inputs, *outputs;
 
     pa_assert(m);
 
     if (!(u = m->userdata))
         return;
 
+    move_all_start(u, &inputs, &outputs);
     stop_thread(u);
+    move_all_end(u, inputs, outputs);
 
     if (USE_SCO_OVER_PCM(u))
         restore_sco_volume_callbacks(u);
-- 
1.7.11.4



More information about the pulseaudio-discuss mailing list