Try to improve time estimation
authorJoão Paulo Rechi Vita <joao.vita@gmail.com>
Fri, 15 Aug 2008 21:13:25 +0000 (18:13 -0300)
committerLennart Poettering <lennart@poettering.net>
Wed, 10 Sep 2008 22:12:06 +0000 (01:12 +0300)
src/modules/module-bt-device.c

index 4c2a92f..1a231df 100644 (file)
@@ -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)