diff options
Diffstat (limited to 'apps/playlist.c')
-rw-r--r-- | apps/playlist.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 0f11ad25ca..5b628ad649 100644 --- a/apps/playlist.c +++ b/apps/playlist.c @@ -1207,6 +1207,8 @@ static int create_and_play_dir(int direction, bool play_last) if (global_settings.playlist_shuffle) playlist_shuffle(current_tick, -1); + playlist_set_modified(NULL, false); + if (play_last && direction <= 0) index = current_playlist.amount - 1; else @@ -2024,21 +2026,6 @@ void playlist_shutdown(void) playlist_write_unlock(playlist); } -/* - * Add track to end of the playlist. Prefer playlist_insert_track(), - * this is DEPRECATED and will be going away at some point. - */ -int playlist_add(const char *filename) -{ - int ret = playlist_insert_track(NULL, filename, PLAYLIST_INSERT_LAST, - false, true); - if (ret < 0) - return ret; - - playlist_set_modified(NULL, false); - return ret; -} - /* returns number of tracks in playlist (includes queued/inserted tracks) */ int playlist_amount_ex(const struct playlist_info* playlist) { |