summaryrefslogtreecommitdiff
path: root/subprojects/gst-integration-testsuites/meson.build
diff options
context:
space:
mode:
authorPiotr Brzeziński <piotr@centricular.com>2024-01-26 19:12:18 +0100
committerPiotr Brzeziński <piotr@centricular.com>2024-02-12 18:25:34 +0100
commit6e59282af21e95b6426bb4a0818e9895b0d0fe43 (patch)
tree6fb53c8f7df29a3a480d938b4c21bb923d64e4de /subprojects/gst-integration-testsuites/meson.build
parent2f4e8d14cf52e21091aaa2207da14977c9e15458 (diff)
macos: Fix gst_macos_main() terminating whole process before returning a value
Removes the usage of [NSApp terminate] to avoid killing the process and thus never actually returning a value. The new way is just to use [NSApp stop] and send an event, since stop only happens after an event is processed. Unlike terminate, stop will only halt the event loop, not the whole process. This uses an NSApplicationDelegate to listen for NSApp finishing the launch process, and then signals the 'main' thread to proceed. That makes sure to never call [NSApp stop] before NSApp is actually running, which could happen if the provided 'main' function finished quickly enough. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6103>
Diffstat (limited to 'subprojects/gst-integration-testsuites/meson.build')
0 files changed, 0 insertions, 0 deletions