diff options
author | Max Kellermann <max@duempel.org> | 2010-09-07 20:19:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2010-09-07 20:22:05 +0200 |
commit | d953225531b69839b4f28a3c797abe64916611e4 (patch) | |
tree | de63324b7993d9ded095d677a1be07216dd72380 /src | |
parent | 663815ead8feca5188b9a6e06316421303f06851 (diff) | |
download | mpd-d953225531b69839b4f28a3c797abe64916611e4.tar.gz mpd-d953225531b69839b4f28a3c797abe64916611e4.tar.xz mpd-d953225531b69839b4f28a3c797abe64916611e4.zip |
update_walk: update existing playlist entry
Fixes duplicate playlist entries.
Diffstat (limited to '')
-rw-r--r-- | src/update_walk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/update_walk.c b/src/update_walk.c index bd5714def..a8e09793a 100644 --- a/src/update_walk.c +++ b/src/update_walk.c @@ -604,7 +604,9 @@ update_regular_file(struct directory *directory, #endif } else if (playlist_suffix_supported(suffix)) { - playlist_vector_add(&directory->playlists, name, st->st_mtime); + if (playlist_vector_update_or_add(&directory->playlists, name, + st->st_mtime)) + modified = true; } } |