summaryrefslogtreecommitdiffstats
path: root/src/modules/bluetooth/module-bluetooth-device.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2009-01-05 19:12:43 -0300
committerLennart Poettering <lennart@poettering.net>2009-01-12 20:35:05 +0100
commit49147c9dab20fddd486e7b4f3dbbd358d3981eab (patch)
tree51f72c01ad7940c95e8e66c35cc99cb2fd906ed4 /src/modules/bluetooth/module-bluetooth-device.c
parent033c9ac08a8e20211aa8a2909d334f72ad4906e3 (diff)
Send packets with proper size.
Diffstat (limited to 'src/modules/bluetooth/module-bluetooth-device.c')
-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;