From 69cd1a2d60a30137071ae0b5b6a271ae0bd0ac28 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 20 Dec 2024 15:31:19 +0100 Subject: [PATCH] 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: --- subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcontext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcontext.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcontext.c index 64603649e3..dcec7142f4 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcontext.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglcontext.c @@ -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);