mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-21 17:21:13 +00:00
sdp: Add debug categories for message and mikey modules
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7924>
This commit is contained in:
parent
6f0304fc72
commit
b6c7280868
2 changed files with 42 additions and 0 deletions
|
@ -37,6 +37,27 @@
|
||||||
|
|
||||||
#include "gstmikey.h"
|
#include "gstmikey.h"
|
||||||
|
|
||||||
|
#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 ("sdpmikey", 0, "SDP mikey");
|
||||||
|
|
||||||
|
g_once_init_leave (&cat_gonce, cat_done);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (GstDebugCategory *) cat_gonce;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#define ensure_debug_category() /* NOOP */
|
||||||
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
|
|
||||||
GST_DEFINE_MINI_OBJECT_TYPE (GstMIKEYPayload, gst_mikey_payload);
|
GST_DEFINE_MINI_OBJECT_TYPE (GstMIKEYPayload, gst_mikey_payload);
|
||||||
GST_DEFINE_MINI_OBJECT_TYPE (GstMIKEYMessage, gst_mikey_message);
|
GST_DEFINE_MINI_OBJECT_TYPE (GstMIKEYMessage, gst_mikey_message);
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,27 @@
|
||||||
#include <gst/pbutils/pbutils.h>
|
#include <gst/pbutils/pbutils.h>
|
||||||
#include "gstsdpmessage.h"
|
#include "gstsdpmessage.h"
|
||||||
|
|
||||||
|
#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 ("sdpmessage", 0, "SDP message");
|
||||||
|
|
||||||
|
g_once_init_leave (&cat_gonce, cat_done);
|
||||||
|
}
|
||||||
|
|
||||||
|
return (GstDebugCategory *) cat_gonce;
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#define ensure_debug_category() /* NOOP */
|
||||||
|
#endif /* GST_DISABLE_GST_DEBUG */
|
||||||
|
|
||||||
#define FREE_STRING(field) g_free (field); (field) = NULL
|
#define FREE_STRING(field) g_free (field); (field) = NULL
|
||||||
#define REPLACE_STRING(field, val) FREE_STRING(field); (field) = g_strdup (val)
|
#define REPLACE_STRING(field, val) FREE_STRING(field); (field) = g_strdup (val)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue