[pulseaudio-commits] r1789 - /branches/lennart/src/modules/module-oss.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Mon Sep 10 13:55:02 PDT 2007


Author: lennart
Date: Mon Sep 10 22:55:01 2007
New Revision: 1789

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1789&root=pulseaudio&view=rev
Log:
make sure that the device volume is properly read before we call pa_sink_put() and thus make the pa_sink available

Modified:
    branches/lennart/src/modules/module-oss.c

Modified: branches/lennart/src/modules/module-oss.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/modules/module-oss.c?rev=1789&root=pulseaudio&r1=1788&r2=1789&view=diff
==============================================================================
--- branches/lennart/src/modules/module-oss.c (original)
+++ branches/lennart/src/modules/module-oss.c Mon Sep 10 22:55:01 2007
@@ -1306,9 +1306,9 @@
 
     /* Read mixer settings */
     if (u->source)
-        pa_asyncmsgq_post(u->thread_mq.inq, PA_MSGOBJECT(u->source), PA_SOURCE_MESSAGE_GET_VOLUME, &u->source->volume, 0, NULL, NULL);
+        pa_asyncmsgq_send(u->thread_mq.inq, PA_MSGOBJECT(u->source), PA_SOURCE_MESSAGE_GET_VOLUME, &u->source->volume, 0, NULL);
     if (u->sink)
-        pa_asyncmsgq_post(u->thread_mq.inq, PA_MSGOBJECT(u->sink), PA_SINK_MESSAGE_GET_VOLUME, &u->sink->volume, 0, NULL, NULL);
+        pa_asyncmsgq_send(u->thread_mq.inq, PA_MSGOBJECT(u->sink), PA_SINK_MESSAGE_GET_VOLUME, &u->sink->volume, 0, NULL);
 
     if (u->sink)
         pa_sink_put(u->sink);




More information about the pulseaudio-commits mailing list