mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-19 12:45:54 +00:00
display: move "vaapi" debug init to libgstvaapi_init_once().
This commit is contained in:
parent
655f400e1c
commit
cd52fa315a
1 changed files with 4 additions and 4 deletions
|
@ -97,13 +97,15 @@ static gboolean
|
||||||
set_color_balance(GstVaapiDisplay *display, guint prop_id, gfloat v);
|
set_color_balance(GstVaapiDisplay *display, guint prop_id, gfloat v);
|
||||||
|
|
||||||
static void
|
static void
|
||||||
dump_version(void)
|
libgstvaapi_init_once(void)
|
||||||
{
|
{
|
||||||
static gsize g_once = FALSE;
|
static gsize g_once = FALSE;
|
||||||
|
|
||||||
if (!g_once_init_enter(&g_once))
|
if (!g_once_init_enter(&g_once))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
GST_DEBUG_CATEGORY_INIT(gst_debug_vaapi, "vaapi", 0, "VA-API helper");
|
||||||
|
|
||||||
/* Dump gstreamer-vaapi version for debugging purposes */
|
/* Dump gstreamer-vaapi version for debugging purposes */
|
||||||
GST_INFO("gstreamer-vaapi version %s", GST_VAAPI_VERSION_ID);
|
GST_INFO("gstreamer-vaapi version %s", GST_VAAPI_VERSION_ID);
|
||||||
|
|
||||||
|
@ -898,9 +900,7 @@ gst_vaapi_display_class_init(GstVaapiDisplayClass *klass)
|
||||||
GObjectClass * const object_class = G_OBJECT_CLASS(klass);
|
GObjectClass * const object_class = G_OBJECT_CLASS(klass);
|
||||||
GstVaapiDisplayClass * const dpy_class = GST_VAAPI_DISPLAY_CLASS(klass);
|
GstVaapiDisplayClass * const dpy_class = GST_VAAPI_DISPLAY_CLASS(klass);
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_INIT(gst_debug_vaapi, "vaapi", 0, "VA-API helper");
|
libgstvaapi_init_once();
|
||||||
|
|
||||||
dump_version();
|
|
||||||
|
|
||||||
g_type_class_add_private(klass, sizeof(GstVaapiDisplayPrivate));
|
g_type_class_add_private(klass, sizeof(GstVaapiDisplayPrivate));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue