summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-03-17 11:43:00 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-03-17 11:43:00 +0100
commit2dcd5dd39b7828b4f3f4dfdad6eeb9481bbe8cb8 (patch)
tree9ed27c6d58d1ffa7990503fe3947f9e833ce33eb /ext
parent84eff5cca93b669a29acbd4db57a79ca4e911dff (diff)
downloadgstreamer-plugins-bad-2dcd5dd39b7828b4f3f4dfdad6eeb9481bbe8cb8.tar.gz
dtls: Initialize debug category earlier
Otherwise the openssl initialization will use it before initialization
Diffstat (limited to 'ext')
-rw-r--r--ext/dtls/gstdtlsagent.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/dtls/gstdtlsagent.c b/ext/dtls/gstdtlsagent.c
index 837ef30b0..af5b75c2b 100644
--- a/ext/dtls/gstdtlsagent.c
+++ b/ext/dtls/gstdtlsagent.c
@@ -42,9 +42,7 @@
GST_DEBUG_CATEGORY_STATIC (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"));
+G_DEFINE_TYPE (GstDtlsAgent, gst_dtls_agent, G_TYPE_OBJECT);
#define GST_DTLS_AGENT_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE((obj), GST_TYPE_DTLS_AGENT, GstDtlsAgentPrivate))
@@ -115,6 +113,9 @@ _gst_dtls_init_openssl (void)
gint num_locks;
if (g_once_init_enter (&is_init)) {
+ GST_DEBUG_CATEGORY_INIT (gst_dtls_agent_debug, "dtlsagent", 0,
+ "DTLS Agent");
+
if (OPENSSL_VERSION_NUMBER < 0x1000100fL) {
GST_WARNING_OBJECT (NULL,
"Incorrect OpenSSL version, should be >= 1.0.1, is %s",