mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-06 13:30:01 -05:00
stream: constify format array because we copy
This commit is contained in:
parent
834da99c7c
commit
937a1567dd
6 changed files with 7 additions and 7 deletions
|
|
@ -299,7 +299,7 @@ static void on_state_changed(struct pw_listener *listener, struct pw_context *co
|
|||
|
||||
case PW_CONTEXT_STATE_CONNECTED:
|
||||
{
|
||||
struct spa_format *formats[1];
|
||||
const struct spa_format *formats[1];
|
||||
uint8_t buffer[1024];
|
||||
struct spa_pod_builder b = SPA_POD_BUILDER_INIT(buffer, sizeof(buffer));
|
||||
struct spa_pod_frame f[2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue