Writing rating to file causes file corruption
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Yarock |
Fix Released
|
Undecided
|
SebastienAmar |
Bug Description
If the option "Write rating to file" is activated, music files are destroyed when you
- change tracks in the playlist
- change the rating anywhere
- stop playback
I could reproduce it using OGG files, I'm not sure if it affects other file types as well. I didn't want to crap my music collection...
Steps to reproduce:
- add two OGG files to the playlist
- start the first one, wait a few seconds
- change rating of one file
- click on the next one, wait...
- change back to the first track -> it shouldn't start
EDIT: even easier steps:
- first way
- add single Ogg file, don't play
- change rating
- try -> it shouldn't start
- second way
- add single Ogg file, DO play, stop
- change rating
- try -> it shouldn't start
Trying to play the corrupted file with mpv results in "Failed to recognize file format". Metadata can be read, though.
It might be a concurrency problem because "writeTrackRati
Interestingly, FLAC and OGG both use XiphComment but they are implemented differently:
...
else if (TagLib:
{
TagLib:
vorbis_
}
else if (TagLib:
{
tag-
}
...
I don't know what it does but looks like it might be the culprit...
description: | updated |
Changed in yarock: | |
status: | New → Fix Released |
Hi thanks for reporting and sorry for this issue.
I will try to fix it as soon as possible. Regards