mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-03 14:08:56 +00:00
video: convertframe: Add a debug category
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4629>
This commit is contained in:
parent
b115756338
commit
ea9b837b07
1 changed files with 22 additions and 0 deletions
|
@ -28,6 +28,28 @@
|
||||||
#include <gst/gl/gstglmemory.h>
|
#include <gst/gl/gstglmemory.h>
|
||||||
#endif
|
#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
|
static gboolean
|
||||||
caps_are_raw (const GstCaps * caps)
|
caps_are_raw (const GstCaps * caps)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue