mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-17 09:30:00 -04:00
Remove playlist if last file is removed from the playlist on an update
This commit is contained in:
parent
23fa058c64
commit
9727812201
@ -1270,6 +1270,11 @@ int db_delete(int id) {
|
|||||||
ptail->next=phead->next;
|
ptail->next=phead->next;
|
||||||
}
|
}
|
||||||
free(phead);
|
free(phead);
|
||||||
|
|
||||||
|
if(pcurrent->nodes == NULL) {
|
||||||
|
DPRINTF(ERR_DEBUG,"Empty Playlist!\n");
|
||||||
|
db_playlist_count--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
pcurrent=pcurrent->next;
|
pcurrent=pcurrent->next;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user