mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
dtls: make sure we actually log into the right debug category
GST_DTLS_USE_GST_LOG is not defined anywhere, so we'd just log into the default category by accident. We use the gst logging system unconditionally now, so might just as well remove this #if #else.
This commit is contained in:
parent
86a889883e
commit
9f06d36d95
3 changed files with 5 additions and 15 deletions
|
@ -39,15 +39,12 @@
|
|||
#include <openssl/err.h>
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
#if GST_DTLS_USE_GST_LOG
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_dtls_agent_debug);
|
||||
# define GST_CAT_DEFAULT gst_dtls_agent_debug
|
||||
#define GST_CAT_DEFAULT gst_dtls_agent_debug
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GstDtlsAgent, gst_dtls_agent, G_TYPE_OBJECT,
|
||||
GST_DEBUG_CATEGORY_INIT (gst_dtls_agent_debug, "dtlsagent", 0,
|
||||
"DTLS Agent"));
|
||||
#else
|
||||
G_DEFINE_TYPE (GstDtlsAgent, gst_dtls_agent, G_TYPE_OBJECT);
|
||||
#endif
|
||||
|
||||
#define GST_DTLS_AGENT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), GST_TYPE_DTLS_AGENT, GstDtlsAgentPrivate))
|
||||
|
||||
|
|
|
@ -40,15 +40,12 @@
|
|||
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
#if GST_DTLS_USE_GST_LOG
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_dtls_certificate_debug);
|
||||
# define GST_CAT_DEFAULT gst_dtls_certificate_debug
|
||||
#define GST_CAT_DEFAULT gst_dtls_certificate_debug
|
||||
|
||||
G_DEFINE_TYPE_WITH_CODE (GstDtlsCertificate, gst_dtls_certificate,
|
||||
G_TYPE_OBJECT, GST_DEBUG_CATEGORY_INIT (gst_dtls_certificate_debug,
|
||||
"dtlscertificate", 0, "DTLS Certificate"));
|
||||
#else
|
||||
G_DEFINE_TYPE (GstDtlsCertificate, gst_dtls_certificate, G_TYPE_OBJECT);
|
||||
#endif
|
||||
|
||||
#define GST_DTLS_CERTIFICATE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), GST_TYPE_DTLS_CERTIFICATE, GstDtlsCertificatePrivate))
|
||||
|
||||
|
|
|
@ -42,15 +42,11 @@
|
|||
#include <openssl/err.h>
|
||||
#include <openssl/ssl.h>
|
||||
|
||||
#if GST_DTLS_USE_GST_LOG
|
||||
GST_DEBUG_CATEGORY_STATIC (gst_dtls_connection_debug);
|
||||
# define GST_CAT_DEFAULT gst_dtls_connection_debug
|
||||
#define GST_CAT_DEFAULT gst_dtls_connection_debug
|
||||
G_DEFINE_TYPE_WITH_CODE (GstDtlsConnection, gst_dtls_connection, G_TYPE_OBJECT,
|
||||
GST_DEBUG_CATEGORY_INIT (gst_dtls_connection_debug, "dtlsconnection", 0,
|
||||
"DTLS Connection"));
|
||||
#else
|
||||
G_DEFINE_TYPE (GstDtlsConnection, gst_dtls_connection, G_TYPE_OBJECT);
|
||||
#endif
|
||||
|
||||
#define GST_DTLS_CONNECTION_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), GST_TYPE_DTLS_CONNECTION, GstDtlsConnectionPrivate))
|
||||
|
||||
|
|
Loading…
Reference in a new issue