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

Revert change to folder filtering + add special handling for shuffle arg instead (fixes regression: #4548) #4566

Merged
merged 4 commits into from
Feb 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change on_load hook to use main thread, based on feedback
  • Loading branch information
svobs committed Jan 18, 2024
commit 06ec94ac1e0d0c7a3ff3ec7f818aae2f960a3e34
8 changes: 5 additions & 3 deletions iina/MPVController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -439,9 +439,11 @@ not applying FFmpeg 9599 workaround
// chkErr(mpv_request_event(mpv, MPV_EVENT_TICK, 1))

addHook(MPVHook.onLoad, hook: MPVHookValue(withBlock: { [self] next in
Logger.log("Callback triggered for mpv 'on-load' hook", level: .verbose, subsystem: player.subsystem)
player.fileWillLoad()
next()
DispatchQueue.main.async { [self] in
Logger.log("Processing mpv 'on_load' hook", level: .verbose, subsystem: player.subsystem)
player.fileWillLoad()
next()
}
}))

// Set a custom function that should be called when there are new events.
Expand Down