mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
stream: setting a format always clears buffers
This commit is contained in:
parent
8292c556e9
commit
ee1b79c4cd
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue