mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
audioconvert: handle NULL param
This commit is contained in:
parent
6c3c88f9d3
commit
93e9efc1e4
4 changed files with 11 additions and 0 deletions
|
|
@ -516,6 +516,9 @@ static int apply_props(struct impl *this, const struct spa_pod *param)
|
|||
bool have_channel_volume = false;
|
||||
bool have_soft_volume = false;
|
||||
|
||||
if (param == NULL)
|
||||
return 0;
|
||||
|
||||
SPA_POD_OBJECT_FOREACH(obj, prop) {
|
||||
switch (prop->key) {
|
||||
case SPA_PROP_volume:
|
||||
|
|
|
|||
|
|
@ -723,6 +723,8 @@ impl_node_port_set_param(void *object,
|
|||
case SPA_PARAM_Latency:
|
||||
{
|
||||
struct spa_latency_info info;
|
||||
if (param == NULL)
|
||||
return 0;
|
||||
if ((res = spa_latency_parse(param, &info)) < 0)
|
||||
return res;
|
||||
if (direction == info.direction)
|
||||
|
|
|
|||
|
|
@ -499,6 +499,9 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
|
||||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||
|
||||
if (param == NULL)
|
||||
return 0;
|
||||
|
||||
switch (id) {
|
||||
case SPA_PARAM_PortConfig:
|
||||
{
|
||||
|
|
|
|||
|
|
@ -284,6 +284,9 @@ static int impl_node_set_param(void *object, uint32_t id, uint32_t flags,
|
|||
|
||||
spa_return_val_if_fail(this != NULL, -EINVAL);
|
||||
|
||||
if (param == NULL)
|
||||
return 0;
|
||||
|
||||
switch (id) {
|
||||
case SPA_PARAM_PortConfig:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue