summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-08-30 13:02:29 +0000
committerPierre Ossman <ossman@cendio.se>2006-08-30 13:02:29 +0000
commit078420a9d2b2532062f30263d067e76735a30349 (patch)
tree8841cd4770a2496c9e87ba5f072706547144e601
parentb2c341f935bd54eb1b7f80a297e72bf0e6c6dc83 (diff)
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
-rw-r--r--src/utils/padsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/padsp.c b/src/utils/padsp.c
index 32cb5f9a3..c765b6935 100644
--- a/src/utils/padsp.c
+++ b/src/utils/padsp.c
@@ -1487,9 +1487,9 @@ static int mixer_ioctl(fd_info *i, unsigned long request, void*argp, int *_errno
pa_operation *o;
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
- 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)
debug(DEBUG_LEVEL_NORMAL, __FILE__":Failed set volume: %s", pa_strerror(pa_context_errno(i->context)));