mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 11:11:08 +00:00
rsvgoverlay: add debug category
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7281>
This commit is contained in:
parent
a6feed84e4
commit
0a2f3fbb9e
1 changed files with 9 additions and 1 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue