gstreamer-rs/examples/src
Piotr Brzeziński 446bb7ec3e examples/tutorials: fix macOS run() wrapper terminating too early
Using terminate() kills the whole process instead of just stopping the event loop, so we're back to the 'old' way.
However, if the provided function finishes too early, that can also fail (will call stop() on a not-yet-running NSApp).
Creating a delegate and waiting for the callback makes sure NSApp is running before the actual main() is called.

Also, for whatever reason only tutorials were changed to use terminate(). Now both tutorials and examples are
using identical code.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1378>
2024-01-29 14:15:19 +00:00
..
bin Fix / work around a few new clippy 1.75 warnings 2023-12-22 16:33:41 +02:00
examples-common.rs examples/tutorials: fix macOS run() wrapper terminating too early 2024-01-29 14:15:19 +00:00
glupload.rs examples/glupload: Upgrade to glutin 0.31 2023-11-10 15:47:20 +02:00