6db4b818e6
Previously, `AND` expressions were the only filters which used `++s` instead of `s = StripLeft(s + 1)` making them sensitive to spacing issues. This caused nested AND expressions (like e.g. `(((A) AND (B)) AND (C))`) to needlessly be rejected with the following error message: `{find} Word expected` due to the fact that the inner AND expression would leave the cursor `s` at a space rather than the beginning of the next word (remainder was ` AND (C))` rather than `AND (C)`). This commit fixes this by consistently using `s = StripLeft(s + 1)` instead of `++s` when parsing AND expressions. Although it is not strictly necessary to resolve the AND nesting bug, the case of trivial AND expressions (consisting basically of only superfluous parentheses) is also changed to the new handling. This should be more robust although I expect that case to be even less common than the direct nesting of AND expressions. see MusicPlayerDaemon/MPD#2100 |
||
---|---|---|
.github | ||
LICENSES | ||
android | ||
build | ||
doc | ||
python/build | ||
src | ||
subprojects | ||
systemd | ||
test | ||
win32 | ||
.clang-format | ||
.gitignore | ||
.readthedocs.yaml | ||
AUTHORS | ||
COPYING | ||
NEWS | ||
README.md | ||
meson.build | ||
meson_options.txt | ||
mpd.svg | ||
valgrind.suppressions |
README.md
Music Player Daemon
A daemon for playing music of various formats. Music is played through the server's audio device. The daemon stores info about all available music, and this info can be easily searched and retrieved. Player control, info retrieval, and playlist management can all be managed remotely.
For basic installation instructions read the manual.
Users
Developers
Legal
MPD is released under the GNU General Public License version 2, which is distributed in the COPYING file.