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

xform priority fallback #3

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Malvineous
Copy link
Member

Further to the reply from nesciens on xmms2-devel on 2016-05-16, here is a small amendment to the XMMS2 xform priority system, to allow multiple xform plugins to handle the same file type, with higher priority plugins being tried, and if they fail to handle the format, falling back to lower priority plugins.

I will post a message to xmms2-devel now about this change, in case it is easier to discuss there.

Instead of failing the chain build if the highest priority xform plugins can't
handle a format, fall back to the next highest priority plugin at each point
in the chain, so that a low priority plugin can be used in the event that the
normal high priority plugin can't handle a given format.
This is required for it to work with the xform priority change, which seeks
back to the start of the data before creating each xform.
@dsvensson
Copy link
Member

Breaks the xform tests, install libcunit and rebuild and you'll automatically run the test suite.

Failure:
https://travis-ci.org/xmms2/xmms2-devel/jobs/294787206#L2178

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 53.767% when pulling 8045278 on Malvineous:xform-priority into dedc33d on xmms2:master.

@Malvineous
Copy link
Member Author

Sorry, wasn't aware of how the tests worked. Updated the code so the tests now pass. Had to change the test plugin to report priority 50 since the existing priority of 0 means the plugin is disabled, but the tests are otherwise unchanged.

The remaining CI build failures look like they aren't related to this patch.

@dsvensson
Copy link
Member

@Malvineous yep, macOS build is due to some cython change, and the analysis build tries to upload new documentation, which should be gated to main master branch. I'll have a look at this tonight I hope. Ping me if I'm slow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants