#endif
#endif
+#include <gst/gl/gstglfuncs.h>
+
#define GST_CAT_DEFAULT qt_gl_utils_debug
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
GST_ERROR ("cannot wrap qt OpenGL context");
return FALSE;
}
-
+
(void) platform;
(void) gl_api;
(void) gl_handle;
- gst_gl_context_activate (*wrap_glcontext, TRUE);
+ gst_gl_context_activate(*wrap_glcontext, TRUE);
if (!gst_gl_context_fill_info (*wrap_glcontext, &error)) {
GST_ERROR ("failed to retrieve qt context info: %s", error->message);
g_object_unref (*wrap_glcontext);
wglMakeCurrent (device, 0);
gst_object_unref (window);
if (!gst_gl_context_create (*context, *wrap_glcontext, &error)) {
- GST_ERROR ("%p failed to create shared GL context: %s", this, error->message);
+ GST_ERROR ("failed to create shared GL context: %s", error->message);
g_object_unref (*context);
*context = NULL;
g_object_unref (*wrap_glcontext);
return FALSE;
}
wglMakeCurrent (device, (HGLRC) gl_handle);
- }
+ } G_STMT_END;
#endif
gst_gl_context_activate (*wrap_glcontext, FALSE);
- } G_STMT_END;
+ }
return TRUE;
}