Skip to content

Conversation

@na-na-hi
Copy link
Contributor

playlist-remove has a required index argument, as indicated by the documentation. However, in 332907e MP_CMD_OPT_ARG was mistakenly added, making it optional. The effect of not specifying the argument is defaulting the index to 0 and always removing the first element in the playlist, which is not expected.

Fix this by making the argument required.

Fixes: 332907e

playlist-remove has a required index argument, as indicated by the
documentation. However, in 332907e
MP_CMD_OPT_ARG was mistakenly added, making it optional.
The effect of not specifying the argument is defaulting the index to 0
and always removing the first element in the playlist, which is not
expected.

Fix this by making the argument required.

Fixes: 332907e
Copy link
Member

@kasper93 kasper93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is breaking change as some people may depend on this undocumented behavior. But I would say it's fine.

@github-actions
Copy link

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