mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
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:
parent
13bc075875
commit
7f0cf0c9ad
1 changed files with 2 additions and 2 deletions
|
|
@ -317,13 +317,13 @@ static void thread_func(void *userdata) {
|
||||||
* fully filled up. This is the best time to estimate
|
* fully filled up. This is the best time to estimate
|
||||||
* the playback position of the server */
|
* the playback position of the server */
|
||||||
|
|
||||||
n = u->offset;
|
n = u->offset - u->encoding_overhead;
|
||||||
|
|
||||||
#ifdef SIOCOUTQ
|
#ifdef SIOCOUTQ
|
||||||
{
|
{
|
||||||
int l;
|
int l;
|
||||||
if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0)
|
if (ioctl(u->fd, SIOCOUTQ, &l) >= 0 && l > 0)
|
||||||
n -= l;
|
n -= (l / u->encoding_ratio);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue