summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-10 20:55:01 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-10 20:55:01 +0000
commit98f9bd62a6aab266495ef02aa49b0903f0989896 (patch)
tree9c3b25fac1fb01a92246f87c51199bffdecf9f3d
parent69ece668ec99e5889be3c4d9a91ef78e199f0d0d (diff)
make sure that the device volume is properly read before we call pa_sink_put() and thus make the pa_sink available
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1789 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/modules/module-oss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/module-oss.c b/src/modules/module-oss.c
index ccbb183f..1e524fcf 100644
--- a/src/modules/module-oss.c
+++ b/src/modules/module-oss.c
@@ -1306,9 +1306,9 @@ go_on:
/* 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);