Hello,
I am using Gstreamer in a Flutter application, currently working on the MacOS build.
On desktop builds, I’d like to have control of the window that displays the video. I’ve read through the examples with GTK and QT, but Flutter doesn’t seem as friendly as these examples, and I am trying to use another windowing library. When I bring in SDL or GLFW and initialize either of those libraries, libdispatch causes a crash during the init.
EXC_BREAKPOINT (code=1, subcode=0x18d046d0c)
libdispatch.dylib!_dispatch_assert_queue_fail (Unknown Source:0)
I realize this is not really a Gstreamer problem, but I am wondering if I could use a GstGLWindow directly. I have tried creating such a window:
GstGLDisplay *d = gst_gl_display_new_with_type(GST_GL_DISPLAY_TYPE_COCOA);
GstGLWindow *w = gst_gl_window_new(d);
gst_gl_window_show(w);
guintptr h = gst_gl_window_get_window_handle(w);
but no window appears. I am wondering if anyone has advice on doing this, if there is another way that you would recommend, or if I am totally off base with my approach. Apologies for my lack of experience with graphics libraries.