diff --git a/src/pipewire/filter.c b/src/pipewire/filter.c index 64f923cf0..c78f956d8 100644 --- a/src/pipewire/filter.c +++ b/src/pipewire/filter.c @@ -625,7 +625,7 @@ static int impl_port_set_param(void *object, if ((res = update_params(impl, port, id, ¶m, param ? 1 : 0)) < 0) return res; - if (id == SPA_PARAM_Format && param == NULL) + if (id == SPA_PARAM_Format) clear_buffers(port); pw_filter_emit_param_changed(filter, port->user_data, id, param); diff --git a/src/pipewire/stream.c b/src/pipewire/stream.c index 222640e65..584870013 100644 --- a/src/pipewire/stream.c +++ b/src/pipewire/stream.c @@ -622,7 +622,7 @@ static int impl_port_set_param(void *object, if ((res = update_params(impl, id, ¶m, param ? 1 : 0)) < 0) return res; - if (id == SPA_PARAM_Format && param == NULL) + if (id == SPA_PARAM_Format) clear_buffers(stream); pw_stream_emit_param_changed(stream, id, param);