]> code.delx.au - pulseaudio/commitdiff
Send packets with proper size.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Mon, 5 Jan 2009 22:12:43 +0000 (19:12 -0300)
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Mon, 5 Jan 2009 22:12:43 +0000 (19:12 -0300)
src/modules/bluetooth/module-bluetooth-device.c

index 5974d48586882e04e063802872c8366027befc17..492ee20388a28f261fce763132e942668288fb7b 100644 (file)
@@ -127,7 +127,7 @@ static int bt_audioservice_send(int sk, const bt_audio_msg_header_t *msg) {
     type = bt_audio_strtype(msg->type);
     name = bt_audio_strname(msg->name);
     pa_log_debug("sending: %s -> %s", type, name);
-    if (send(sk, msg, BT_SUGGESTED_BUFFER_SIZE, 0) > 0)
+    if (send(sk, msg, msg->length, 0) > 0)
         e = 0;
     else {
         e = -errno;