pa_stream_get_latency return value steadily increases when playing over network
Submitted by Kerrick Staley
Assigned to pul..@..op.org
Description
To reproduce:
- Have two computers, one connected to speakers (the server) and the other running VLC (the client)
- On the server, append the following two lines to /etc/pulse/system.pa, start Avahi, and run pulse --system --daemon: load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.1.0/24 auth-anonymous=1 load-module module-zeroconf-publish
- On the client, append the following two lines to /etc/pulse/default.pa, start Avahi, and run pulse --daemon: load-module module-native-protocol-tcp load-module module-zeroconf-discover
- Run VLC on the client, observe the values returned by pa_stream_get_latency in the function vlc_pa_get_latency in the file vlcpulse.c
Expected result: Values vary within a relatively small range (which is what happens when playing locally).
Actual result: Values increase directly with time (i.e. after 4 seconds, values are roughly 4 seconds higher than they were initially).