Skip to content
Snippets Groups Projects
Commit 3c201b61 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

softdsp-endpoint: copy format using standard struct assignment

parent acc3eef2
No related branches found
No related tags found
No related merge requests found
...@@ -191,12 +191,7 @@ node_event_info (void *data, const struct pw_node_info *info) ...@@ -191,12 +191,7 @@ node_event_info (void *data, const struct pw_node_info *info)
} }
/* Set the format using the port format */ /* Set the format using the port format */
self->format.format = port->format.format; self->format = port->format;
self->format.flags = port->format.flags;
self->format.rate = port->format.rate;
self->format.channels = port->format.channels;
for (int i = 0; i < port->format.channels; ++i)
self->format.position[i] = port->format.position[i];
/* Emit the audio DSP node */ /* Emit the audio DSP node */
emit_audio_dsp_node(self); emit_audio_dsp_node(self);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment