diff options
Diffstat (limited to 'src/modules/module-raop-sink.c')
-rw-r--r-- | src/modules/module-raop-sink.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |