Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix fragile parsing of bs1770gain output #2777

Merged
merged 5 commits into from
Jan 2, 2018
Merged

Fix fragile parsing of bs1770gain output #2777

merged 5 commits into from
Jan 2, 2018

Conversation

ylep
Copy link
Contributor

@ylep ylep commented Dec 31, 2017

bs1770gain is sorting the filenames internally, so in some corner cases it returns the results in a different order from the command-line arguments.

This patch uses the --xml option of bs1770gain (introduced in 0.4.6) in order to read the filenames reliably.

bs1770gain is sorting the filenames internally, so in some corner cases it returns the results in a different order from the command-line arguments.

This patch uses the --xml option of bs1770gain (introduced in 0.4.6) in order to read the filenames reliably.
@sampsyo
Copy link
Member

sampsyo commented Dec 31, 2017

Thanks; this looks great! Parsing the XML from the output seems more robust than our old regex parser anyway.

As with #2778, can you please add a changelog entry? It might also be useful to add a minimum bs1770gain version to the plugin's docs.

@sampsyo
Copy link
Member

sampsyo commented Jan 2, 2018

Perfect! Thank you for these updates—and for finding the problem in the first place. ✨ Awesome work!

@sampsyo sampsyo merged commit 563b0f4 into beetbox:master Jan 2, 2018
@ylep ylep deleted the fix-bs1170gain branch January 2, 2018 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants