diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-12-22 13:25:09 +0100 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2018-12-24 12:20:00 +0000 |
commit | 8ef95a7dc22502b78ccd28bddefda29b32918315 (patch) | |
tree | b69c2faae3d5ce5aadd0ed576af3005e2a301754 | |
parent | 6c364cb9a7580442054ec6b9f4f1b2e03274a93d (diff) |
libs: window: use its own debug category
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiwindow.c | 10 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiwindow_drm.c | 4 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiwindow_egl.c | 2 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiwindow_glx.c | 4 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiwindow_wayland.c | 4 | ||||
-rw-r--r-- | gst-libs/gst/vaapi/gstvaapiwindow_x11.c | 4 |
6 files changed, 17 insertions, 11 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiwindow.c b/gst-libs/gst/vaapi/gstvaapiwindow.c index 61e679ea..fdf650fe 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow.c @@ -33,11 +33,15 @@ #include "gstvaapidisplay_priv.h" #include "gstvaapisurface_priv.h" -#define DEBUG 1 -#include "gstvaapidebug.h" +GST_DEBUG_CATEGORY (gst_debug_vaapi_window); +#define GST_CAT_DEFAULT gst_debug_vaapi_window +#define _do_init \ + GST_DEBUG_CATEGORY_INIT (gst_debug_vaapi_window, "vaapiwindow", 0, \ + "VA-API Window"); -G_DEFINE_ABSTRACT_TYPE (GstVaapiWindow, gst_vaapi_window, GST_TYPE_OBJECT); +G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstVaapiWindow, gst_vaapi_window, + GST_TYPE_OBJECT, _do_init); enum { diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_drm.c b/gst-libs/gst/vaapi/gstvaapiwindow_drm.c index 78e81634..54735b4d 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_drm.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_drm.c @@ -30,8 +30,8 @@ #include "gstvaapiwindow_priv.h" #include "gstvaapidisplay_drm_priv.h" -#define DEBUG 1 -#include "gstvaapidebug.h" +GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window); +#define GST_CAT_DEFAULT gst_debug_vaapi_window typedef struct _GstVaapiWindowDRMClass GstVaapiWindowDRMClass; diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_egl.c b/gst-libs/gst/vaapi/gstvaapiwindow_egl.c index 56b4855e..45f38691 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_egl.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_egl.c @@ -32,6 +32,8 @@ #include "gstvaapitexture_priv.h" #include "gstvaapidisplay_egl_priv.h" +GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window); +#define GST_CAT_DEFAULT gst_debug_vaapi_window #define GST_VAAPI_WINDOW_EGL_CAST(obj) \ ((GstVaapiWindowEGL *)(obj)) diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_glx.c b/gst-libs/gst/vaapi/gstvaapiwindow_glx.c index aae17ab2..fe823b97 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_glx.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_glx.c @@ -36,8 +36,8 @@ #include "gstvaapiutils_x11.h" #include "gstvaapiutils_glx.h" -#define DEBUG 1 -#include "gstvaapidebug.h" +GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window); +#define GST_CAT_DEFAULT gst_debug_vaapi_window #define GST_VAAPI_WINDOW_GLX_CAST(obj) ((GstVaapiWindowGLX *)(obj)) #define GST_VAAPI_WINDOW_GLX_GET_PRIVATE(window) \ diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c b/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c index a105a82c..5b9b4663 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_wayland.c @@ -37,8 +37,8 @@ #include "gstvaapifilter.h" #include "gstvaapisurfacepool.h" -#define DEBUG 1 -#include "gstvaapidebug.h" +GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window); +#define GST_CAT_DEFAULT gst_debug_vaapi_window #define GST_VAAPI_WINDOW_WAYLAND_CAST(obj) \ ((GstVaapiWindowWayland *)(obj)) diff --git a/gst-libs/gst/vaapi/gstvaapiwindow_x11.c b/gst-libs/gst/vaapi/gstvaapiwindow_x11.c index b2237e71..865b11ba 100644 --- a/gst-libs/gst/vaapi/gstvaapiwindow_x11.c +++ b/gst-libs/gst/vaapi/gstvaapiwindow_x11.c @@ -40,8 +40,8 @@ #include "gstvaapiutils.h" #include "gstvaapiutils_x11.h" -#define DEBUG 1 -#include "gstvaapidebug.h" +GST_DEBUG_CATEGORY_EXTERN (gst_debug_vaapi_window); +#define GST_CAT_DEFAULT gst_debug_vaapi_window #define GST_VAAPI_WINDOW_X11_GET_CLASS(obj) \ (G_TYPE_INSTANCE_GET_CLASS ((obj), GST_TYPE_VAAPI_WINDOW_X11, GstVaapiWindowX11Class)) |