mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-20 05:20:05 +01:00
si-audio-adapter: skip reconfiguring if the same mode & format are requested
This commit is contained in:
parent
486288363b
commit
11f9433929
1 changed files with 9 additions and 0 deletions
|
|
@ -617,6 +617,15 @@ si_audio_adapter_set_ports_format (WpSiAdapter * item, WpSpaPod *f,
|
|||
return;
|
||||
}
|
||||
|
||||
/* skip reconfiguring if the same mode & format are requested */
|
||||
if (!g_strcmp0 (mode, self->mode) &&
|
||||
((format == NULL && self->format == NULL) ||
|
||||
wp_spa_pod_equal (format, self->format))) {
|
||||
g_autoptr (GTask) t = g_steal_pointer (&self->format_task);
|
||||
g_task_return_boolean (t, TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
/* set format and mode */
|
||||
g_clear_pointer (&self->format, wp_spa_pod_unref);
|
||||
self->format = g_steal_pointer (&format);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue