Remove playlist if last file is removed from the playlist on an update

This commit is contained in:
Ron Pedde 2004-09-15 03:03:45 +00:00
parent 23fa058c64
commit 9727812201

View File

@ -1270,6 +1270,11 @@ int db_delete(int id) {
ptail->next=phead->next;
}
free(phead);
if(pcurrent->nodes == NULL) {
DPRINTF(ERR_DEBUG,"Empty Playlist!\n");
db_playlist_count--;
}
}
pcurrent=pcurrent->next;
}