glcontext: add trace log when scheduling function in GL thread

There is already a log when the function is executed. Adding one when
scheduled can be useful to know how long we are waiting.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8190>
This commit is contained in:
Guillaume Desmottes 2024-12-20 15:31:19 +01:00 committed by GStreamer Marge Bot
parent 775a2bd26f
commit 69cd1a2d60

View file

@ -1676,6 +1676,9 @@ gst_gl_context_thread_add (GstGLContext * context,
window = gst_gl_context_get_window (context);
GST_TRACE_OBJECT (context, "schedule function:%p data:%p", rdata.func,
rdata.data);
gst_gl_window_send_message (window,
GST_GL_WINDOW_CB (_gst_gl_context_thread_run_generic), &rdata);