--- android/hal-audio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/hal-audio.c b/android/hal-audio.c index be17c76..6439880 100644 --- 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; -- 1.8.5.3 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html