mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
qt: fix build warning with clang and c-linkage of user defined type
In file included from ../subprojects/gst-plugins-good/ext/qt/qtglrenderer.cc:17: ../subprojects/gst-plugins-good/ext/qt/gstqtglutility.h:35:16: error: 'qt_opengl_native_context_from_gst_gl_context' has C-linkage specified, but returns user-defined type 'QVariant' which is incompatible with C [-Werror,-Wreturn-type-c-linkage] QVariant qt_opengl_native_context_from_gst_gl_context (GstGLContext * context); Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/928>
This commit is contained in:
parent
42b803ebb3
commit
4c3906356c
1 changed files with 5 additions and 2 deletions
|
@ -32,7 +32,10 @@ GstGLDisplay * gst_qt_get_gl_display ();
|
|||
gboolean gst_qt_get_gl_wrapcontext (GstGLDisplay * display,
|
||||
GstGLContext **wrap_glcontext, GstGLContext **context);
|
||||
|
||||
QVariant qt_opengl_native_context_from_gst_gl_context (GstGLContext * context);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#if defined(__cplusplus)
|
||||
QVariant qt_opengl_native_context_from_gst_gl_context (GstGLContext * context);
|
||||
#endif
|
||||
|
||||
#endif /* __QT_GL_UTILS_H__ */
|
||||
|
|
Loading…
Reference in a new issue