GNOME Bugzilla – Bug 331732
playlist entries do not always get removed
Last modified: 2006-03-11 04:01:32 UTC
1. purge playlist. add two files 2. play the first entry. 3. right-lick it and select "eleminate" playback skips to the next song but the entry is not visibly removed. this leads to a crash when the first entry is played again and attempted to eleminate.
Can't duplicate this with HEAD as of today. I suspect this is a duplicate of bug #131150 which just got fixed today. Marking as such. Re-open if this still isn't fixed. *** This bug has been marked as a duplicate of 131150 ***
Hmm I still can reproduce it
With CVS HEAD? What do you mean by eliminate, you mean Remove or Move to Trash? I can't duplicate this.
yes with CVS head. still there with cvs build from today. I mean "remove from playlist" (the minus symbol)
Created attachment 61038 [details] [review] delay rhythmdb entry-deleted signal until commit This was happening because the entry was being deleted while it still had outstanding changes. The deletion signal was emitted immediately (removing the entry from all sources), then the changes were emitted on the next rhythmdb_commit, which re-added the entry to any sources it had been in. This patch delays the entry deleted signal until the next rhythmdb_commit, like all other changes. All rhythmdb_entry_delete calls except one already had rhythmdb_commit calls immediately afterwards. This patch adds the missing commit.
Looks good to me.
Committed, with some small changes to add a reference on entries in the deleted-entries list, and free the list in rhythmdb_commit_internal.