diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2009-01-05 19:12:43 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-12 20:35:05 +0100 |
commit | 49147c9dab20fddd486e7b4f3dbbd358d3981eab (patch) | |
tree | 51f72c01ad7940c95e8e66c35cc99cb2fd906ed4 | |
parent | 033c9ac08a8e20211aa8a2909d334f72ad4906e3 (diff) |
Send packets with proper size.
-rw-r--r-- | src/modules/bluetooth/module-bluetooth-device.c | 2 |
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; |