mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-15 00:00:30 +01:00
si-adapter: take ownership of format argument
The wp_si_adapter_set_port_config API must take ownership of the param argument as described by the documentation.
This commit is contained in:
parent
214c7a444a
commit
f8cf723b19
2 changed files with 4 additions and 2 deletions
|
|
@ -442,11 +442,12 @@ build_adapter_format (WpSiAudioAdapter * self, WpSpaPod *format)
|
|||
}
|
||||
|
||||
static void
|
||||
si_audio_adapter_set_ports_format (WpSiAdapter * item, WpSpaPod *format,
|
||||
si_audio_adapter_set_ports_format (WpSiAdapter * item, WpSpaPod *f,
|
||||
const gchar *mode, GAsyncReadyCallback callback, gpointer data)
|
||||
{
|
||||
WpSiAudioAdapter *self = WP_SI_AUDIO_ADAPTER (item);
|
||||
g_autoptr (WpCore) core = wp_object_get_core (WP_OBJECT (self));
|
||||
g_autoptr (WpSpaPod) format = f;
|
||||
g_autoptr (WpSpaPod) new_format = NULL;
|
||||
|
||||
g_return_if_fail (core);
|
||||
|
|
|
|||
|
|
@ -481,11 +481,12 @@ build_adapter_format (WpSiAudioEndpoint * self, WpSpaPod *format)
|
|||
}
|
||||
|
||||
static void
|
||||
si_audio_endpoint_set_ports_format (WpSiAdapter * item, WpSpaPod *format,
|
||||
si_audio_endpoint_set_ports_format (WpSiAdapter * item, WpSpaPod *f,
|
||||
const gchar *mode, GAsyncReadyCallback callback, gpointer data)
|
||||
{
|
||||
WpSiAudioEndpoint *self = WP_SI_AUDIO_ENDPOINT (item);
|
||||
g_autoptr (WpCore) core = wp_object_get_core (WP_OBJECT (self));
|
||||
g_autoptr (WpSpaPod) format = f;
|
||||
g_autoptr (WpSpaPod) new_format = NULL;
|
||||
|
||||
g_return_if_fail (core);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue