From 2dcd5dd39b7828b4f3f4dfdad6eeb9481bbe8cb8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 17 Mar 2015 11:43:00 +0100 Subject: [PATCH] dtls: Initialize debug category earlier Otherwise the openssl initialization will use it before initialization --- ext/dtls/gstdtlsagent.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ext/dtls/gstdtlsagent.c b/ext/dtls/gstdtlsagent.c index 837ef30b02..af5b75c2bf 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", -- 2.34.1