[pulseaudio-commits] r1345 - /trunk/src/utils/padsp.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Wed Aug 30 06:02:31 PDT 2006


Author: ossman
Date: Wed Aug 30 15:02:29 2006
New Revision: 1345

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1345&root=pulseaudio&view=rev
Log:
We need to have a callback when changing volume or we might deadlock.

Modified:
    trunk/src/utils/padsp.c

Modified: trunk/src/utils/padsp.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/utils/padsp.c?rev=1345&root=pulseaudio&r1=1344&r2=1345&view=diff
==============================================================================
--- trunk/src/utils/padsp.c (original)
+++ trunk/src/utils/padsp.c Wed Aug 30 15:02:29 2006
@@ -1487,9 +1487,9 @@
                 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)));




More information about the pulseaudio-commits mailing list