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

Robustness for duplicate ids, pimplification etc #5

Merged
merged 8 commits into from
Aug 13, 2024
Merged

Conversation

pvuorela
Copy link
Contributor

Multiple commits here:

  • Started by noticing qtgrilo may crash the application if the query results have entries with duplicate ids. Added protection for that.
  • Had already album artist getter for completeness of the api
  • Wanted to add some logs on how long queries take. Adding timer member variable made jolla-mediaplayer crash on ABI change. Annoyed enough to just pimplify the classes now.
  • Added a simple optimization related to above for the initial fetch. The enhancement isn't that drastic but it's simple.

This may lead to crashes when media item get deleted by their id
so better make it known that something unexpected is happening.
For completeness if nothing else. Likelihood that this is going to be
needed.
src/grilodatasource.cpp Outdated Show resolved Hide resolved
src/grilobrowse.cpp Outdated Show resolved Hide resolved
src/grilodatasource.cpp Outdated Show resolved Hide resolved
Harder to follow and makes pimplifying harder
We should be sure that the initial population doesn't need to
move any existing rows, thus we can just skip looking for them.
@pvuorela pvuorela merged commit b94550f into master Aug 13, 2024
@pvuorela pvuorela deleted the robustness branch August 13, 2024 08:50
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