[vlc-commits] [Git][videolan/vlc][master] 26 commits: macosx: Add private initialiser to handle non-ml related state init VLCLibraryModel

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Oct 26 21:34:54 UTC 2026



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
192b4ee7 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Add private initialiser to handle non-ml related state init VLCLibraryModel

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
f21b2952 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Explicitly type caches in library model

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
81e79576 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Add basic test suite for VLCLibraryModel checking basic filter, sort, query

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
cb502882 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Fully cover (non-ml related) filtering in library model

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
94e1288b by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Fully cover (non-ml related) sorting in library model

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
0f330051 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Fully cover (non-ml related) querying in library model

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
19c99b33 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Add basic library model integration test

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
f88ecae8 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Cover filtering in library model integration test

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
69513878 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Cover sorting in library model integration test

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
509c274b by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Cover querying in library model integration test

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
a070c8e7 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Clean up test fixture code, move to support files

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
075e5ab7 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Test favorite filtering with exclusion criteria

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
e27bc015 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Refresh the movie cache when movies are added, updated, or deleted

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
a4640d2f by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Protect all cache accesses through their relevant dispatch queues

Simplifies internal accesses and ensures external accesses are safe

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
47d6cf24 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Require re-fetch of movie items if deletion received during pending fetch

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
ff607af2 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Add shared library model test support

Centralize private model declarations and add deterministic cache-read and query-write gates, with pending-query draining for safe fixture teardown. Make fixture database connections match medialibrary collation and trigger behavior, wait for discovery to finish, and isolate tests from user configuration. Adapt existing tests to the shared declarations and remove assertions for deleted dictionaries.

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
8cb6fa1b by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Test overlapping library cache operations

Exercise superseded queries and queued writes across model caches, refreshes overlapping updates and deletions, and back-to-back mutations in main and recent media caches. Verify notifications are delivered only after accepted writes and cache drops complete.

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
6e1a5c29 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Test selective library cache reconciliation

Exercise persisted changes affecting cache membership, filtering, ordering, availability, and track counts, alongside updates that should not trigger full reloads. Verify present-track conversion for artist and album wrappers and add the fixture mutations required by these scenarios.

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
458f7025 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Test targeted show cache updates

Verify episode changes refresh only their parent show, independent show refreshes preserve each other's results, repeated changes coalesce, and final-episode deletion removes the show. Cover retained episode mappings and targeted results superseded by cache drops or full replacements.

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
5b2d4f07 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Test media title cache reference counting

Cover sorted title unions, duplicate references, source replacement and removal, lazy loading, and persisted rename/deletion. Reproduce delayed title writes and overlapping cache drops and rebuilds, verifying both fresh titles and reference-count cleanup.

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
a5295e90 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Test native library events and folder observers

Exercise real native playlist, favorite, and media callbacks, including notification payloads and main-thread delivery. Verify callback unregistration, monitored-folder observer replacement and release, and rejection of pending folder results after cache drops.

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
8a946b29 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Test filtered counts and recent history queries

Exercise filtered counts before caches are loaded and persisted recent-history ordering and limits. Verify history remains newest-first regardless of the library's alphabetical sort, using controlled playback dates.

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
51620887 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Returned filtered counts for items when caches not available

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
70786cf3 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Sort recents in descending order of most-least recent playback

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
bda0ac4f by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Remove unneeded movie notification

Already handled by the change delegate

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -
3528f269 by Claudio Cambra at 2026-10-26T21:49:49+01:00
macosx: Correct library model test fixture assumptions

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


10 changed files:

- modules/gui/macosx/library/VLCLibraryModel.m
- modules/gui/macosx/tests/Makefile.am
- modules/gui/macosx/tests/VLCLibraryDataTypesIntegrationTestSupport.h
- modules/gui/macosx/tests/VLCLibraryDataTypesIntegrationTestSupport.m
- modules/gui/macosx/tests/VLCLibraryDataTypesTest.m
- + modules/gui/macosx/tests/VLCLibraryModelConcurrencyTest.m
- + modules/gui/macosx/tests/VLCLibraryModelIntegrationTest.m
- + modules/gui/macosx/tests/VLCLibraryModelTest.m
- + modules/gui/macosx/tests/VLCLibraryModelTestSupport.h
- + modules/gui/macosx/tests/VLCLibraryModelTestSupport.m


The diff was not included because it is too large.


View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/038b736dadd8bdec0cc0a81fde2e44a9f931d4e3...3528f26904378f4a1d3ee55cf92082a669807d68

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/038b736dadd8bdec0cc0a81fde2e44a9f931d4e3...3528f26904378f4a1d3ee55cf92082a669807d68
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list