[pulseaudio-discuss] [RFCv3 15/20] bluetooth: Do the socket defered setup

jprvita at gmail.com jprvita at gmail.com
Sun Apr 21 20:07:45 PDT 2013


From: João Paulo Rechi Vita <jprvita at openbossa.org>

---
 src/modules/bluetooth/module-bluetooth-device.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 9a0b765..d234f15 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -296,6 +296,10 @@ static void setup_stream(struct userdata *u) {
     if (setsockopt(u->stream_fd, SOL_SOCKET, SO_TIMESTAMP, &one, sizeof(one)) < 0)
         pa_log_warn("Failed to enable SO_TIMESTAMP: %s", pa_cstrerror(errno));
 
+    /* Do the socket defered setup */
+    if (recv(u->stream_fd, NULL, 0, 0) < 0)
+        pa_log_error("Defered setup failed: %d (%s)", errno, strerror(errno));
+
     pa_log_debug("Stream properly set up, we're ready to roll!");
 
     if (u->profile == PROFILE_A2DP)
-- 
1.7.11.7



More information about the pulseaudio-discuss mailing list