mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
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
This commit is contained in:
parent
69ece668ec
commit
98f9bd62a6
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue