Skip to content

Commit

Permalink
Fix ISO C warning
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Mar 25, 2024
1 parent 652df6f commit 1b40e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/drivers/fluid_pipewire.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ new_fluid_pipewire_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t
char *media_category = NULL;
float *buffer = NULL;
const struct spa_pod *params[1];
struct pw_properties *props;

drv = FLUID_NEW(fluid_pipewire_audio_driver_t);

Expand Down Expand Up @@ -196,7 +197,7 @@ new_fluid_pipewire_audio_driver2(fluid_settings_t *settings, fluid_audio_func_t
goto driver_cleanup;
}

struct pw_properties *props = pw_properties_new(PW_KEY_MEDIA_TYPE, media_type, PW_KEY_MEDIA_CATEGORY, media_category, PW_KEY_MEDIA_ROLE, media_role, NULL);
props = pw_properties_new(PW_KEY_MEDIA_TYPE, media_type, PW_KEY_MEDIA_CATEGORY, media_category, PW_KEY_MEDIA_ROLE, media_role, NULL);

pw_properties_setf(props, PW_KEY_NODE_LATENCY, "%d/%d", period_size, (int) sample_rate);
pw_properties_setf(props, PW_KEY_NODE_RATE, "1/%d", (int) sample_rate);
Expand Down

0 comments on commit 1b40e17

Please sign in to comment.