diff options
author | Max Kellermann <max@duempel.org> | 2009-03-27 16:44:36 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-27 16:44:36 +0100 |
commit | 8258457b434fd24dba6025b474c2d3be8f8183d3 (patch) | |
tree | 74bd320f22862a931bc3b25e3e9a7fd429f8b53d /src/stats.c | |
parent | 1a411b1cedfad5073fa545c852a6d23107a1ddd0 (diff) | |
download | mpd-8258457b434fd24dba6025b474c2d3be8f8183d3.tar.gz mpd-8258457b434fd24dba6025b474c2d3be8f8183d3.tar.xz mpd-8258457b434fd24dba6025b474c2d3be8f8183d3.zip |
pulse_mixer: wait for get_volume() operation to complete
The pa_context_get_sink_input_info() function is asynchronous, and
after it returns, libpulse does not guarantee that the operation has
completed yet; in fact, it is not likely. Explicitly wait for the
operation to complete.
The code for the new pulse_wait_for_operation() function was inspired
by mplayer and xine code.
Diffstat (limited to 'src/stats.c')
0 files changed, 0 insertions, 0 deletions