video: convertframe: Add a debug category

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4629>
This commit is contained in:
Philippe Normand 2023-05-14 13:33:05 +01:00 committed by GStreamer Marge Bot
parent b115756338
commit ea9b837b07

View file

@ -28,6 +28,28 @@
#include <gst/gl/gstglmemory.h>
#endif
#ifndef GST_DISABLE_GST_DEBUG
#define GST_CAT_DEFAULT ensure_debug_category()
static GstDebugCategory *
ensure_debug_category (void)
{
static gsize cat_gonce = 0;
if (g_once_init_enter (&cat_gonce)) {
gsize cat_done;
cat_done = (gsize) _gst_debug_category_new ("video-frame-converter", 0,
"video-frame-converter object");
g_once_init_leave (&cat_gonce, cat_done);
}
return (GstDebugCategory *) cat_gonce;
}
#else
#define ensure_debug_category() /* NOOP */
#endif /* GST_DISABLE_GST_DEBUG */
static gboolean
caps_are_raw (const GstCaps * caps)
{