void gst_gl_query_free (GstGLQuery * query) { g_return_if_fail (query != NULL); gst_gl_query_unset (query); g_free (query); }
static void _test_query_init_gl (GstGLContext * context, gpointer data) { GstGLQuery q1; /* no usage */ gst_gl_query_init (&q1, context, GST_GL_QUERY_TIMESTAMP); gst_gl_query_unset (&q1); }
static void _test_query_counter_log_gl (GstGLContext * context, gpointer data) { GstGLQuery q2; gst_gl_query_init (&q2, context, GST_GL_QUERY_TIMESTAMP); gst_gl_query_counter_log (&q2, gst_test_debug_cat, GST_LEVEL_ERROR, NULL, "%s", "testing query proxy-logging works from gst_gl_query_counter_log()"); gst_gl_query_result (&q2); gst_gl_query_unset (&q2); }
static void _test_query_timestamp_gl (GstGLContext * context, gpointer data) { GstGLQuery q2; gst_gl_query_init (&q2, context, GST_GL_QUERY_TIMESTAMP); /* GST_GL_QUERY_TIMESTAMP doesn't supported start()/end() */ ASSERT_CRITICAL (gst_gl_query_start (&q2)); ASSERT_CRITICAL (gst_gl_query_end (&q2)); gst_gl_query_counter (&q2); gst_gl_query_result (&q2); gst_gl_query_unset (&q2); }