diff options
author | der richter <der.richter@gmx.de> | 2023-11-23 17:44:02 +0100 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2023-11-25 19:04:07 +0100 |
commit | 3f2bc2e5355e7588585de3f74b224947e89ce256 (patch) | |
tree | 17656ced0e68965ee0fea58fe55ad87dab360b86 /osdep/macosx_application.m | |
parent | 5aac4c1aee909ece346ba54b262cf915ca314483 (diff) | |
download | mpv-3f2bc2e5355e7588585de3f74b224947e89ce256.tar.bz2 mpv-3f2bc2e5355e7588585de3f74b224947e89ce256.tar.xz |
mac: fix libmpv usage without embedding
NSApp is only an Application when initialised from mpv itself. when used
via libmpv an Application is never initialised and mpv would always
immediately exit.
make the retrieval of the vo and mac options static so they can be
retrieved in all cases.
Fixes #12518
Diffstat (limited to 'osdep/macosx_application.m')
-rw-r--r-- | osdep/macosx_application.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index 73503ad66c..1a1c6aefc0 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -190,12 +190,12 @@ static const char macosx_icon[] = #endif } -- (const struct m_sub_options *)getMacOSConf ++ (const struct m_sub_options *)getMacOSConf { return &macos_conf; } -- (const struct m_sub_options *)getVoSubConf ++ (const struct m_sub_options *)getVoSubConf { return &vo_sub_opts; } |