update_walk: update existing playlist entry

Fixes duplicate playlist entries.
This commit is contained in:
Max Kellermann 2010-09-07 20:19:53 +02:00
parent 663815ead8
commit d953225531

View File

@ -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;
}
}