OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f4a6021
)
android/hal-audio: Fix RTP sequence numbers
author
Andrzej Kaczmarek
<andrzej.kaczmarek@tieto.com>
Mon, 3 Feb 2014 16:55:48 +0000
(17:55 +0100)
committer
Szymon Janc
<szymon.janc@gmail.com>
Mon, 3 Feb 2014 20:53:08 +0000
(21:53 +0100)
android/hal-audio.c
patch
|
blob
|
history
diff --git
a/android/hal-audio.c
b/android/hal-audio.c
index
be17c76
..
6439880
100644
(file)
--- a/
android/hal-audio.c
+++ b/
android/hal-audio.c
@@
-458,7
+458,6
@@
static ssize_t sbc_write_data(void *codec_data, const void *buffer,
mp->hdr.v = 2;
mp->hdr.pt = 1;
- mp->hdr.sequence_number = htons(sbc_data->seq++);
mp->hdr.ssrc = htonl(1);
mp->payload.frame_count = 0;
@@
-488,6
+487,8
@@
static ssize_t sbc_write_data(void *codec_data, const void *buffer,
bytes == consumed ||
mp->payload.frame_count ==
MAX_FRAMES_IN_PAYLOAD) {
+ mp->hdr.sequence_number = htons(sbc_data->seq++);
+
ret = write_media_packet(fd, sbc_data, mp, encoded);
if (ret < 0)
return ret;