mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Fix EOF handler
This commit is contained in:
@@ -271,11 +271,9 @@ final class MPVBackend: PlayerBackend {
|
||||
onFileLoaded = nil
|
||||
|
||||
case MPV_EVENT_END_FILE:
|
||||
break
|
||||
// DispatchQueue.main.async { [weak self] in
|
||||
// TODO: handle EOF
|
||||
// self?.handleEndOfFile(event)
|
||||
// }
|
||||
DispatchQueue.main.async { [weak self] in
|
||||
self?.handleEndOfFile(event)
|
||||
}
|
||||
|
||||
default:
|
||||
logger.info(.init(stringLiteral: "event: \(String(cString: mpv_event_name(event.pointee.event_id)))"))
|
||||
|
Reference in New Issue
Block a user