1
mirror of https://github.com/mpv-player/mpv synced 2024-07-31 16:29:58 +02:00
mpv/osdep/macos
der richter bc58361d86 mac: fix usage of temporary pointers
the pointer used to initialise the respective structs is only guaranteed
to be alive within this constructor. the struct itself is used later and
the data it points to, is not guaranteed to be the same.

to fix this we define a scope that pointer is definitely valid and use
it within this scope. a helper function was added to get the pointers
for several data at once. otherwise we would need to nest
withUnsafeMutableBytes several times, which would make it hard to read.
2021-01-13 16:23:47 +01:00
..
libmpv_helper.swift mac: fix usage of temporary pointers 2021-01-13 16:23:47 +01:00
log_helper.swift cocoa-cb: generalisation of backend independent parts 2020-08-22 14:22:49 +02:00
mpv_helper.swift mac: fix usage of temporary pointers 2021-01-13 16:23:47 +01:00
remote_command_center.swift cocoa-cb: generalisation of backend independent parts 2020-08-22 14:22:49 +02:00
swift_compat.swift
swift_extensions.swift cocoa-cb: use m_config_cache and new VOCTRL for option handling 2019-12-15 20:07:11 +01:00