mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-15 06:59:58 -05:00
make use of pa_thread_mq everywhere
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1624 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b3f1a133f1
commit
3eae9038eb
13 changed files with 127 additions and 147 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include <pulsecore/core-error.h>
|
||||
#include <pulsecore/sink-input.h>
|
||||
#include <pulsecore/log.h>
|
||||
#include <pulsecore/thread-mq.h>
|
||||
|
||||
#include "sound-file-stream.h"
|
||||
|
||||
|
|
@ -161,7 +162,7 @@ static int sink_input_peek_cb(pa_sink_input *i, pa_memchunk *chunk) {
|
|||
pa_memblock_unref(u->memchunk.memblock);
|
||||
pa_memchunk_reset(&u->memchunk);
|
||||
|
||||
pa_asyncmsgq_post(u->core->asyncmsgq, PA_MSGOBJECT(u), FILE_STREAM_MESSAGE_UNLINK, NULL, 0, NULL, NULL);
|
||||
pa_asyncmsgq_post(pa_thread_mq_get()->outq, PA_MSGOBJECT(u), FILE_STREAM_MESSAGE_UNLINK, NULL, 0, NULL, NULL);
|
||||
|
||||
sf_close(u->sndfile);
|
||||
u->sndfile = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue