[pulseaudio-discuss] [PATCH v10 03/11] bluetooth: Update TODO: about tstamp in a2dp_process_push()
Pali Rohár
pali.rohar at gmail.com
Fri May 3 21:05:15 UTC 2019
tstamp is local time when packet was received -- not remote time when packet was sent.
---
src/modules/bluetooth/module-bluez5-device.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/src/modules/bluetooth/module-bluez5-device.c b/src/modules/bluetooth/module-bluez5-device.c
index c0b293d94..08de1154b 100644
--- a/src/modules/bluetooth/module-bluez5-device.c
+++ b/src/modules/bluetooth/module-bluez5-device.c
@@ -536,7 +536,6 @@ static int a2dp_process_push(struct userdata *u) {
memchunk.index = memchunk.length = 0;
for (;;) {
- bool found_tstamp = false;
pa_usec_t tstamp;
uint8_t *ptr;
ssize_t l;
@@ -563,11 +562,8 @@ static int a2dp_process_push(struct userdata *u) {
pa_assert((size_t) l <= u->decoder_buffer_size);
- /* TODO: get timestamp from rtp */
- if (!found_tstamp) {
- /* pa_log_warn("Couldn't find SO_TIMESTAMP data in auxiliary recvmsg() data!"); */
- tstamp = pa_rtclock_now();
- }
+ /* TODO: retrieve SO_TIMESTAMP, local tstamp for received bluz packet from u->stream_fd socket */
+ tstamp = pa_rtclock_now();
ptr = pa_memblock_acquire(memchunk.memblock);
memchunk.length = pa_memblock_get_length(memchunk.memblock);
--
2.11.0
More information about the pulseaudio-discuss
mailing list