mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-03 19:38:01 +02:00
si-adapter: use F32P default format if mode is NULL
This commit is contained in:
parent
e9b7d02b22
commit
334d92b5cb
2 changed files with 2 additions and 2 deletions
|
|
@ -324,7 +324,7 @@ build_adapter_default_format (WpSiAudioAdapter * self, const gchar *mode)
|
|||
guint32 format = SPA_AUDIO_FORMAT_F32;
|
||||
|
||||
/* if dsp, use plannar format */
|
||||
if (g_strcmp0 (mode, "dsp") == 0)
|
||||
if (!mode || g_strcmp0 (mode, "dsp") == 0)
|
||||
format = SPA_AUDIO_FORMAT_F32P;
|
||||
|
||||
return build_adapter_format (self, format, 2, NULL);
|
||||
|
|
|
|||
|
|
@ -449,7 +449,7 @@ build_endpoint_default_format (WpSiAudioEndpoint * self, const gchar *mode)
|
|||
guint32 format = SPA_AUDIO_FORMAT_F32;
|
||||
|
||||
/* if dsp, use plannar format */
|
||||
if (g_strcmp0 (mode, "dsp") == 0)
|
||||
if (!mode || g_strcmp0 (mode, "dsp") == 0)
|
||||
format = SPA_AUDIO_FORMAT_F32P;
|
||||
|
||||
return build_endpoint_format (self, format, 2, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue