Skip to content

Commit

Permalink
[player] 'clear_queue_on_stop_disable' in mpd section should keep wor…
Browse files Browse the repository at this point in the history
…king

Ref commit bfbd634
  • Loading branch information
ejurgensen committed Mar 20, 2022
1 parent 44d2c02 commit 5b23da9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -3633,6 +3633,12 @@ player_init(void)
speaker_autoselect = cfg_getbool(cfg_getsec(cfg, "general"), "speaker_autoselect");
clear_queue_on_stop_disabled = cfg_getbool(cfg_getsec(cfg, "library"), "clear_queue_on_stop_disable");

/* Handle deprecated config options, note that this is also in library.c */
if (0 < cfg_opt_size(cfg_getopt(cfg_getsec(cfg, "mpd"), "clear_queue_on_stop_disable")))
{
clear_queue_on_stop_disabled = cfg_getbool(cfg_getsec(cfg, "mpd"), "clear_queue_on_stop_disable");
}

CHECK_NULL(L_PLAYER, player_settings_category = settings_category_get("player"));
ret = SETTINGS_GETINT(player_settings_category, PLAYER_SETTINGS_MODE_REPEAT);
repeat = (ret > 0) ? ret : REPEAT_OFF;
Expand Down

0 comments on commit 5b23da9

Please sign in to comment.