stream: setting a format always clears buffers

This commit is contained in:
Wim Taymans 2020-06-04 10:18:13 +02:00
parent 8292c556e9
commit ee1b79c4cd
2 changed files with 2 additions and 2 deletions

View file

@ -625,7 +625,7 @@ static int impl_port_set_param(void *object,
if ((res = update_params(impl, port, id, &param, 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);

View file

@ -622,7 +622,7 @@ static int impl_port_set_param(void *object,
if ((res = update_params(impl, id, &param, 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);