rsvgoverlay: add debug category

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7281>
This commit is contained in:
Guillaume Desmottes 2024-07-26 17:13:10 +02:00 committed by Backport Bot
parent a6feed84e4
commit 0a2f3fbb9e

View file

@ -85,6 +85,9 @@ enum
PROP_HEIGHT_RELATIVE PROP_HEIGHT_RELATIVE
}; };
GST_DEBUG_CATEGORY_STATIC (rsvg_overlay_debug);
#define GST_CAT_DEFAULT rsvg_overlay_debug
#define GST_RSVG_LOCK(overlay) G_STMT_START { \ #define GST_RSVG_LOCK(overlay) G_STMT_START { \
GST_LOG_OBJECT (overlay, "Locking rsvgoverlay from thread %p", g_thread_self ()); \ GST_LOG_OBJECT (overlay, "Locking rsvgoverlay from thread %p", g_thread_self ()); \
g_mutex_lock (&overlay->rsvg_lock); \ g_mutex_lock (&overlay->rsvg_lock); \
@ -122,7 +125,12 @@ static GstStaticPadTemplate data_sink_template =
GST_STATIC_CAPS ("image/svg+xml; image/svg; text/plain")); GST_STATIC_CAPS ("image/svg+xml; image/svg; text/plain"));
#define gst_rsv_overlay_parent_class parent_class #define gst_rsv_overlay_parent_class parent_class
G_DEFINE_TYPE (GstRsvgOverlay, gst_rsvg_overlay, GST_TYPE_VIDEO_FILTER);
#define _do_init \
GST_DEBUG_CATEGORY_INIT (rsvg_overlay_debug, "rsvgoverlay", 0, "SVG Overlay");
G_DEFINE_TYPE_WITH_CODE (GstRsvgOverlay, gst_rsvg_overlay,
GST_TYPE_VIDEO_FILTER, _do_init);
GST_ELEMENT_REGISTER_DEFINE (rsvgoverlay, "rsvgoverlay", GST_RANK_NONE, GST_ELEMENT_REGISTER_DEFINE (rsvgoverlay, "rsvgoverlay", GST_RANK_NONE,
GST_TYPE_RSVG_OVERLAY); GST_TYPE_RSVG_OVERLAY);