summaryrefslogtreecommitdiff
path: root/gst/vaapi/gstvaapipostproc.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2017-03-20 16:45:01 +0100
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2017-03-20 19:15:39 +0100
commit152217064f1192bb836620ad7eaadbc031624f4c (patch)
tree2dc74519e90f1ce2bc29b316771fcea59fe0f6a5 /gst/vaapi/gstvaapipostproc.c
parent9ed6ac1f763589dd3f77fdccfe6b3487c3a836ba (diff)
plugins: when debug disabled, default category is NULL
As in gstreamer-vaapi a common base class is used, the specific default category is passed to the base-plugin initializator, thus the log messages are categorized with the used plugin. Nonetheless, when the gst-debug is disabled in compilation time, it is needed to pass NULL to the base-plugin initializator. This patch does that. https://bugzilla.gnome.org/show_bug.cgi?id=780302
Diffstat (limited to 'gst/vaapi/gstvaapipostproc.c')
-rw-r--r--gst/vaapi/gstvaapipostproc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/vaapi/gstvaapipostproc.c b/gst/vaapi/gstvaapipostproc.c
index f4ddbb51..d45f7ee9 100644
--- a/gst/vaapi/gstvaapipostproc.c
+++ b/gst/vaapi/gstvaapipostproc.c
@@ -49,7 +49,11 @@
#define GST_PLUGIN_DESC "A VA-API video postprocessing filter"
GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapipostproc);
+#ifndef GST_DISABLE_GST_DEBUG
#define GST_CAT_DEFAULT gst_debug_vaapipostproc
+#else
+#define GST_CAT_DEFAULT NULL
+#endif
/* Default templates */
/* *INDENT-OFF* */