Fix up a couple of values related to encoding overhead.

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/coling@2497 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Colin Guthrie 2008-06-03 23:07:48 +00:00
parent 13bc075875
commit 7f0cf0c9ad

View file

@ -317,13 +317,13 @@ static void thread_func(void *userdata) {
* fully filled up. This is the best time to estimate
* the playback position of the server */
n = u->offset;
n = u->offset - u->encoding_overhead;
#ifdef SIOCOUTQ
{
int l;
if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0)
n -= l;
n -= (l / u->encoding_ratio);
}
#endif