mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
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
This commit is contained in:
parent
9ed6ac1f76
commit
152217064f
4 changed files with 16 additions and 0 deletions
|
@ -49,7 +49,11 @@
|
|||
#define GST_VAAPI_DECODE_FLOW_PARSE_DATA GST_FLOW_CUSTOM_SUCCESS_2
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapidecode);
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
#define GST_CAT_DEFAULT gst_debug_vaapidecode
|
||||
#else
|
||||
#define GST_CAT_DEFAULT NULL
|
||||
#endif
|
||||
|
||||
#define GST_VAAPI_DECODE_PARAMS_QDATA \
|
||||
g_quark_from_static_string("vaapidec-params")
|
||||
|
|
|
@ -38,7 +38,11 @@
|
|||
#define GST_VAAPI_ENCODE_FLOW_CONVERT_ERROR GST_FLOW_CUSTOM_ERROR_1
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_vaapiencode_debug);
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
#define GST_CAT_DEFAULT gst_vaapiencode_debug
|
||||
#else
|
||||
#define GST_CAT_DEFAULT NULL
|
||||
#endif
|
||||
|
||||
G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GstVaapiEncode,
|
||||
gst_vaapiencode, GST_TYPE_VIDEO_ENCODER,
|
||||
|
|
|
@ -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* */
|
||||
|
|
|
@ -59,7 +59,11 @@
|
|||
#define GST_PLUGIN_DESC "A VA-API based videosink"
|
||||
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapisink);
|
||||
#ifndef GST_DISABLE_GST_DEBUG
|
||||
#define GST_CAT_DEFAULT gst_debug_vaapisink
|
||||
#else
|
||||
#define GST_CAT_DEFAULT NULL
|
||||
#endif
|
||||
|
||||
/* Default template */
|
||||
/* *INDENT-OFF* */
|
||||
|
|
Loading…
Reference in a new issue