Open
Conversation
9e81466 to
2d90289
Compare
Signed-off-by: Avery <saint_erk@tutanota.com>
Upstream cd-paranoia fixed the offset issue, but we can't check whether the installed version contains the fix. Instead of warning everyone before the rip starts, warn only the people who get an empty file with the large offset. Don't show size mismatch warnings for zero-size files Signed-off-by: Avery <saint_erk@tutanota.com>
2d90289 to
12c6688
Compare
Author
|
Is there any step I missed to get this reviewed? It's been a few months since I figured out how to get my commits signed to please the github-action bot, and I haven't heard anything since. |
Collaborator
|
Apologies for the delay in reviewing, I've been quite preoccupied. I'll take a look at this and the other PR (234) this week and get back to you. |
Collaborator
|
I like the idea behind this approach, rather than trying to rely on version matching (which seems to be tricky given that they seem to be stuck on 10.2?). Would you mind adding some comments in the code that explain why this works? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently (on develop), ripping using an offset > 587 always warns you about the upstream cd-paranoia bug. It tells you the warning that will be logged when cd-paranoia fails in that way, and then you see the warning when it fails. Here's that output when using cd-paranoia versions 10.2+2.0.1, which still has the offset bug:
This branch changes the offset warning to appear after the rip fails with size zero with a large offset, and it suppresses the other warnings about 0 not being equal and the non-integer number of frames. Here's that new output, again with 10.2+2.0.1:
Therefore, when I upgrade cd-paranoia to a version that fixes the offset bug, I can rip my CD without getting the warning about large offsets at all. This resolves issue #635 without trying to figure out whether a fixed version of cd-paranoia is installed. Here's proof with the updated cd-paranoia (10.2+2.0.2), same drive, same CD, but now there's no offset warning between the Q channel CRC check and the successful rip:
Additional fix in this branch: One of the AccuRip tests pulls an entry from the live database and asserts the parsed values match the test-defined values, but the entry has been updated with new confidence numbers since the test was written. I've addressed this by changing the assertion about the confidence count to be "greater than or equal" instead of "equal" so that it won't break with future changes to the AccuRip that are outside this project's direct control.
Considered but not done: I considered moving the warning for the bug on track count 99 in the same way, but I don't have such a CD on hand to test.