mpv/video/out/mac
rcombs 588cb9a977 mac: avoid unnecessary unsafe conversions; fixes crash in debug builds
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.
2022-09-14 16:28:12 -05:00
..
common.swift mac: avoid unnecessary unsafe conversions; fixes crash in debug builds 2022-09-14 16:28:12 -05:00
gl_layer.swift
title_bar.swift mac: fix a window positioning bug when exiting fullscreen 2020-12-19 15:44:59 +01:00
view.swift various: fix typos 2022-04-25 09:07:18 -04:00
window.swift various: fix typos 2022-04-25 09:07:18 -04:00