mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
Fix two typos that broke tunnels
Signed-off-by: Lennart Poettering <lennart@poettering.net>
This commit is contained in:
parent
5a5d2884e0
commit
d8465f2c4f
1 changed files with 2 additions and 2 deletions
|
|
@ -508,7 +508,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off
|
|||
|
||||
switch (code) {
|
||||
|
||||
case PA_SINK_MESSAGE_SET_STATE: {
|
||||
case PA_SOURCE_MESSAGE_SET_STATE: {
|
||||
int r;
|
||||
|
||||
if ((r = pa_source_process_msg(o, code, data, offset, chunk)) >= 0)
|
||||
|
|
@ -520,7 +520,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off
|
|||
case PA_SOURCE_MESSAGE_GET_LATENCY: {
|
||||
pa_usec_t yr, yl, *usec = data;
|
||||
|
||||
yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SINK(o)->sample_spec);
|
||||
yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SOURCE(o)->sample_spec);
|
||||
yr = pa_smoother_get(u->smoother, pa_rtclock_usec());
|
||||
|
||||
*usec = yr > yl ? yr - yl : 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue