directory: update playlist version if updated
If we updated the mpd metadata database; then there's a chance some of those songs in the playlist will have updated metadata. So be on the safe side and increment the playlist version number if _any_ song changed (this is how all released versions of mpd did it, too). This bug was introduced recently when making "update" threaded. Thanks to stonecrest for the bug report.
This commit is contained in:
parent
88aaa6b759
commit
52a0ea2dc5
@ -123,9 +123,14 @@ int isUpdatingDB(void)
|
||||
|
||||
void reap_update_task(void)
|
||||
{
|
||||
enum update_return ret;
|
||||
|
||||
if (progress != UPDATE_PROGRESS_DONE)
|
||||
return;
|
||||
pthread_join(update_thr, NULL);
|
||||
if (pthread_join(update_thr, (void **)&ret))
|
||||
FATAL("error joining update thread: %s\n", strerror(errno));
|
||||
if (ret == UPDATE_RETURN_UPDATED)
|
||||
playlistVersionChange();
|
||||
progress = UPDATE_PROGRESS_IDLE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user