Skip to content

Commit

Permalink
Fix: use arguments for TRIGGER_MYMPD_JUKEBOX
Browse files Browse the repository at this point in the history
  • Loading branch information
jcorporation committed Jun 17, 2024
1 parent 845ec55 commit 2eb9452
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mpd_client/jukebox.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ bool jukebox_run(struct t_mympd_state *mympd_state, struct t_partition_state *pa
list_init(&arguments);
list_push(&arguments, "addToQueue", 0, "1", NULL);
int n = mympd_api_trigger_execute(&mympd_state->trigger_list, TRIGGER_MYMPD_JUKEBOX,
partition_state->name, NULL);
partition_state->name, &arguments);
list_clear(&arguments);
if (n > 0) {
if (n > 1) {
Expand Down Expand Up @@ -196,7 +196,7 @@ bool jukebox_run(struct t_mympd_state *mympd_state, struct t_partition_state *pa
list_init(&arguments);
list_push(&arguments, "addToQueue", 0, "0", NULL);
int n = mympd_api_trigger_execute(&mympd_state->trigger_list, TRIGGER_MYMPD_JUKEBOX,
partition_state->name, NULL);
partition_state->name, &arguments);
list_clear(&arguments);
if (n > 0) {
if (n > 1) {
Expand Down

0 comments on commit 2eb9452

Please sign in to comment.