mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
resample: avoid NULL deref
The function is NULL when the resampler was not initialized. Fixes #1706
This commit is contained in:
parent
2c4b27163d
commit
f6d69f9bcd
1 changed files with 2 additions and 1 deletions
|
|
@ -275,6 +275,7 @@ static void reset_node(struct impl *this)
|
|||
outport = GET_OUT_PORT(this, 0);
|
||||
inport = GET_IN_PORT(this, 0);
|
||||
|
||||
if (this->resample.reset)
|
||||
resample_reset(&this->resample);
|
||||
outport->offset = 0;
|
||||
inport->offset = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue