RevenantX / foo_cuefixer

Simple component for Foobar2000 to fix CUE/FLAC problems
MIT License
58 stars 3 forks source link

CUEFIXER can't remove items from playlist with any lock #13

Closed dima-lur closed 4 months ago

dima-lur commented 4 months ago

Playlists can have a lock with "remove items" permitted, so the following code will be more correct:

auto lock_filter_mask = playlistManager->playlist_lock_get_filter_mask(p_playlist); if (lock_filter_mask & playlist_lock::filter_remove) { delete entriesToRemove; console::print("CUEFIXER: playlist locked"); return; }