mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
resample: fix compilation
Also fix a compiler warning in clang
This commit is contained in:
parent
c54d3764b2
commit
b52c490709
2 changed files with 4 additions and 2 deletions
|
|
@ -167,8 +167,8 @@ static void impl_native_update_rate(struct resample *r, double rate)
|
|||
data->inc = data->in_rate / data->out_rate;
|
||||
data->frac = data->in_rate % data->out_rate;
|
||||
|
||||
spa_log_trace_fp(r->log, "native %p: rate:%f in:%d out:%d gcd:%d phase:%f inc:%d frac:%d", r,
|
||||
rate, r->i_rate, r->o_rate, gcd, data->phase, data->inc, data->frac);
|
||||
spa_log_trace_fp(r->log, "native %p: rate:%f in:%d out:%d phase:%f inc:%d frac:%d", r,
|
||||
rate, r->i_rate, r->o_rate, data->phase, data->inc, data->frac);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -242,6 +242,7 @@ static int add_param(struct stream *impl,
|
|||
|
||||
switch (id) {
|
||||
case SPA_PARAM_Latency:
|
||||
{
|
||||
struct spa_latency_info info;
|
||||
if ((res = spa_latency_parse(param, &info)) < 0)
|
||||
return res;
|
||||
|
|
@ -254,6 +255,7 @@ static int add_param(struct stream *impl,
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p = malloc(sizeof(struct param) + SPA_POD_SIZE(param));
|
||||
if (p == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue