From 7f0cf0c9adc5176ba41d549754ea25ed6f12bdce Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Tue, 3 Jun 2008 23:07:48 +0000 Subject: 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 --- src/modules/module-raop-sink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/module-raop-sink.c') diff --git a/src/modules/module-raop-sink.c b/src/modules/module-raop-sink.c index f78abbae..96c98a6f 100644 --- a/src/modules/module-raop-sink.c +++ b/src/modules/module-raop-sink.c @@ -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 -- cgit