GNOME Bugzilla – Bug 790242
Tutorials all can't show video on macOS
Last modified: 2018-11-03 11:03:49 UTC
See https://github.com/sdroege/gstreamer-rs/issues/58 , same applies to the C tutorials. The problem is that for osxvideosink and glimagesink we need to run a NSRunLoop on the main thread on macOS. Our patched GLib version does that when you run a GMainLoop (upstream GLib doens't!), but the examples are only using gst_bus_timed_pop_filtered() so that also wouldn't help. Using a GMainLoop would make the tutorials quite a bit more complicated, more API would have to be introduced, there would always be callbacks, etc. Not sure what to do about this!
I've managed to get simple examples working by running the example on a thread, and calling CFRunLoopRun() on the main thread. It requires only linking with the foundation.framework.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-docs/issues/10.