mirror of https://github.com/mpv-player/mpv
588cb9a977
Previously, running a debug build of mpv would crash with this output when preinit() at vo_libmpv.c:732 calls control(vo, VOCTRL_PREINIT, NULL): Swift/Optional.swift:247: Fatal error: unsafelyUnwrapped of nil optional This comes from this line of code: var data = UnsafeMutableRawPointer.init(bitPattern: 0).unsafelyUnwrapped Unsafely unwrapping a UnsafeMutableRawPointer.init has always been UB, but the Swift runtime began asserting on it in debug builds a couple macOS versions ago. |
||
---|---|---|
.. | ||
common.swift | ||
gl_layer.swift | ||
title_bar.swift | ||
view.swift | ||
window.swift |