mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
We need to have a callback when changing volume or we might deadlock.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1345 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b2c341f935
commit
078420a9d2
1 changed files with 2 additions and 2 deletions
|
|
@ -1487,9 +1487,9 @@ static int mixer_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno
|
||||||
pa_operation *o;
|
pa_operation *o;
|
||||||
|
|
||||||
if (request == SOUND_MIXER_READ_PCM)
|
if (request == SOUND_MIXER_READ_PCM)
|
||||||
o = pa_context_set_sink_volume_by_index(i->context, i->sink_index, pv, NULL, NULL);
|
o = pa_context_set_sink_volume_by_index(i->context, i->sink_index, pv, context_success_cb, i);
|
||||||
else
|
else
|
||||||
o = pa_context_set_source_volume_by_index(i->context, i->source_index, pv, NULL, NULL);
|
o = pa_context_set_source_volume_by_index(i->context, i->source_index, pv, context_success_cb, i);
|
||||||
|
|
||||||
if (!o)
|
if (!o)
|
||||||
debug(DEBUG_LEVEL_NORMAL, __FILE__":Failed set volume: %s", pa_strerror(pa_context_errno(i->context)));
|
debug(DEBUG_LEVEL_NORMAL, __FILE__":Failed set volume: %s", pa_strerror(pa_context_errno(i->context)));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue