summaryrefslogtreecommitdiffstats
path: root/src/modules/bluetooth
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-01-05 19:12:43 -0300
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-01-05 19:12:43 -0300
commitbe49c92a381d433704438c810ce8e1b09b9aa550 (patch)
tree8143718a1f4bace52b8878257970f039549edb83 /src/modules/bluetooth
parentfe2b8c359b505dfa4c5fb75f223fc35c7ecdfd4b (diff)
Send packets with proper size.
Diffstat (limited to 'src/modules/bluetooth')
-rw-r--r--src/modules/bluetooth/module-bluetooth-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-device.c b/src/modules/bluetooth/module-bluetooth-device.c
index 5974d485..492ee203 100644
--- a/src/modules/bluetooth/module-bluetooth-device.c
+++ b/src/modules/bluetooth/module-bluetooth-device.c
@@ -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;