diff options
author | João Paulo Rechi Vita <joao.vita@gmail.com> | 2008-08-15 18:13:25 -0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-09-11 01:12:06 +0300 |
commit | 6c10b106d8836a18de3a4d7986dafdb426557669 (patch) | |
tree | 5a1bdc35dc85cce7d6a0772cd4592eeddbcceb7b | |
parent | 123ba4f5f17dbc82b2e82be3db1bf11a12e7c84a (diff) |
Try to improve time estimation
-rw-r--r-- | src/modules/module-bt-device.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/module-bt-device.c b/src/modules/module-bt-device.c index 4c2a92f9..1a231df2 100644 --- a/src/modules/module-bt-device.c +++ b/src/modules/module-bt-device.c @@ -642,13 +642,13 @@ filled_up: * This is the best time to estimate the playback position of the server */ n = u->offset; -//#ifdef SIOCOUTQ -// { -// int l; -// if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0) -// n -= l; -// } -//#endif +#ifdef SIOCOUTQ + { + int l; + if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0) + n -= l; + } +#endif usec = pa_bytes_to_usec(n, &u->sink->sample_spec); if (usec > u->latency) |