waylandsink in Qt5 be crashed
I consulted tests/examples/waylandsink the example, the program is based on GTK. I tried to embed waylandsink in QT5, but it crashed in the code below.
QPlatformNativeInterface * native = QGuiApplication::platformNativeInterface();
struct wl_display *display_handle = (struct wl_display *)native->nativeResourceForWindow("display", NULL);
GstContext * context = gst_wayland_display_handle_context_new (display_handle);
gst_element_set_context (GST_ELEMENT(GST_MESSAGE_SRC(message)), context);
it crashed in function gst_element_set_context
. Can you tell me how to fix this BUG? Or provide an example based on QT5. Thank you.