summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <joao.vita@gmail.com>2008-08-15 18:13:25 -0300
committerLennart Poettering <lennart@poettering.net>2008-09-11 01:12:06 +0300
commit6c10b106d8836a18de3a4d7986dafdb426557669 (patch)
tree5a1bdc35dc85cce7d6a0772cd4592eeddbcceb7b
parent123ba4f5f17dbc82b2e82be3db1bf11a12e7c84a (diff)
Try to improve time estimation
-rw-r--r--src/modules/module-bt-device.c14
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)