mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-15 06:59:58 -05:00
Merge branch 'master' of ssh://rootserver/home/lennart/git/public/pulseaudio
Conflicts: src/daemon/main.c
This commit is contained in:
commit
88d5749f6a
11 changed files with 97 additions and 17 deletions
|
|
@ -172,11 +172,11 @@ int pa_asyncmsgq_send(pa_asyncmsgq *a, pa_msgobject *object, int code, const voi
|
|||
return i.ret;
|
||||
}
|
||||
|
||||
int pa_asyncmsgq_get(pa_asyncmsgq *a, pa_msgobject **object, int *code, void **userdata, int64_t *offset, pa_memchunk *chunk, pa_bool_t wait) {
|
||||
int pa_asyncmsgq_get(pa_asyncmsgq *a, pa_msgobject **object, int *code, void **userdata, int64_t *offset, pa_memchunk *chunk, pa_bool_t wait_op) {
|
||||
pa_assert(PA_REFCNT_VALUE(a) > 0);
|
||||
pa_assert(!a->current);
|
||||
|
||||
if (!(a->current = pa_asyncq_pop(a->asyncq, wait))) {
|
||||
if (!(a->current = pa_asyncq_pop(a->asyncq, wait_op))) {
|
||||
/* pa_log("failure"); */
|
||||
return -1;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2550,7 +2550,7 @@ static void command_get_playback_latency(pa_pdispatch *pd, uint32_t command, uin
|
|||
reply = reply_new(tag);
|
||||
pa_tagstruct_put_usec(reply,
|
||||
s->current_sink_latency +
|
||||
pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sample_spec));
|
||||
pa_bytes_to_usec(s->render_memblockq_length, &s->sink_input->sink->sample_spec));
|
||||
pa_tagstruct_put_usec(reply, 0);
|
||||
pa_tagstruct_put_boolean(reply,
|
||||
s->playing_for > 0 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue