audioconvert2: set blocks a stride for DSP ports

They might not get connected and negotiated but we still need to
use empty buffers in that case.
This commit is contained in:
Wim Taymans 2022-04-28 16:34:47 +02:00
parent 2d6bf00acc
commit c0f34e9d9d

View file

@ -322,6 +322,8 @@ static int init_port(struct impl *this, enum spa_direction direction, uint32_t p
port->format.media_type = SPA_MEDIA_TYPE_audio;
port->format.media_subtype = SPA_MEDIA_SUBTYPE_dsp;
port->format.info.dsp.format = SPA_AUDIO_FORMAT_DSP_F32;
port->blocks = 1;
port->stride = 4;
}
spa_list_init(&port->queue);