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

command: make playlist writable #14990

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

Conversation

zsugabubus
Copy link

An attempt to improve #14939. It enhances the playlist property by making it writable: it allows reordering, removing and loading new playlist entries in one go. Thanks na-na-hi for the idea.

Compared to my previous approach it adds much more code but I hope the added functionality justifies it (though most of it is just copy-pasted hash map implementation).

I couldn't find too much prior work on tests so I came up with a custom script. Not sure whether this was the correct way to do it.

@guidocella
Copy link
Contributor

Can av_dict be used instead of adding khash?

@zsugabubus
Copy link
Author

av_dict is O(n) and uses string comparison.

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