mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
audioconvert: mark ports and buffers as DYNAMIC
Only passthrough buffer data when the buffer and ports are marked as DYNAMIC. Use extra buffer for nodes that keep a ref on buffers (resample).
This commit is contained in:
parent
df5c81e3be
commit
036ca89c0e
11 changed files with 81 additions and 39 deletions
|
|
@ -64,9 +64,8 @@ static int impl_speex_init(struct resample *r)
|
|||
r->data = speex_resampler_init_frac(r->channels,
|
||||
r->i_rate, r->o_rate, r->i_rate, r->o_rate,
|
||||
SPEEX_RESAMPLER_QUALITY_DEFAULT, &err);
|
||||
if (r->data == NULL) {
|
||||
if (r->data == NULL)
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue