Commit 3a93190e authored by Julian Bouzas's avatar Julian Bouzas
Browse files

lib: fix const compile warnings by using the wp_spa_pod_new_wrap_const API

parent e63ca28b
......@@ -356,7 +356,7 @@ impl_set_param (void *object, uint32_t id, uint32_t flags,
return -ENOENT;
WpProps *props = wp_proxy_get_props (WP_PROXY (self));
wp_props_set (props, NULL, wp_spa_pod_new_wrap (param));
wp_props_set (props, NULL, wp_spa_pod_new_wrap_const (param));
return 0;
}
......
......@@ -696,7 +696,7 @@ impl_set_param (void *object, uint32_t id, uint32_t flags,
return -ENOENT;
WpProps *props = wp_proxy_get_props (WP_PROXY (self));
wp_props_set (props, NULL, wp_spa_pod_new_wrap (param));
wp_props_set (props, NULL, wp_spa_pod_new_wrap_const (param));
return 0;
}
......
......@@ -1078,7 +1078,7 @@ wp_proxy_handle_event_param (void * proxy, int seq, uint32_t id,
{
WpProxy *self = WP_PROXY (proxy);
WpProxyPrivate *priv = wp_proxy_get_instance_private (self);
g_autoptr (WpSpaPod) w_param = wp_spa_pod_new_wrap (param);
g_autoptr (WpSpaPod) w_param = wp_spa_pod_new_wrap_const (param);
GTask *task;
/* if this param event was emited because of enum_params(),
......
......@@ -830,7 +830,7 @@ impl_set_param (void *object, uint32_t id, uint32_t flags,
return -ENOENT;
WpProps *props = wp_proxy_get_props (WP_PROXY (self));
wp_props_set (props, NULL, wp_spa_pod_new_wrap (param));
wp_props_set (props, NULL, wp_spa_pod_new_wrap_const (param));
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment