dtls: Make agent and connection GstObjects
authorPhilippe Normand <philn@igalia.com>
Sat, 30 Jul 2022 16:42:50 +0000 (17:42 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 1 Aug 2022 09:02:03 +0000 (09:02 +0000)
Facilitates debug logs interpretation of GST_DEBUG_OBJECT() calls.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2820>

subprojects/gst-plugins-bad/ext/dtls/gstdtlsagent.c
subprojects/gst-plugins-bad/ext/dtls/gstdtlsagent.h
subprojects/gst-plugins-bad/ext/dtls/gstdtlsconnection.c
subprojects/gst-plugins-bad/ext/dtls/gstdtlsconnection.h

index 4070c79..88cfa16 100644 (file)
@@ -58,7 +58,7 @@ struct _GstDtlsAgentPrivate
   GstDtlsCertificate *certificate;
 };
 
-G_DEFINE_TYPE_WITH_PRIVATE (GstDtlsAgent, gst_dtls_agent, G_TYPE_OBJECT);
+G_DEFINE_TYPE_WITH_PRIVATE (GstDtlsAgent, gst_dtls_agent, GST_TYPE_OBJECT);
 
 static void gst_dtls_agent_finalize (GObject * gobject);
 static void gst_dtls_agent_set_property (GObject *, guint prop_id,
index fbfa1e8..b4a4e20 100644 (file)
@@ -28,7 +28,7 @@
 
 #include "gstdtlscertificate.h"
 
-#include <glib-object.h>
+#include <gst/gst.h>
 
 G_BEGIN_DECLS
 
@@ -52,13 +52,13 @@ typedef struct _GstDtlsAgentPrivate GstDtlsAgentPrivate;
  * GstDtlsAgent needs to be constructed with the "certificate" property set.
  */
 struct _GstDtlsAgent {
-    GObject parent_instance;
+    GstObject parent_instance;
 
     GstDtlsAgentPrivate *priv;
 };
 
 struct _GstDtlsAgentClass {
-    GObjectClass parent_class;
+    GstObjectClass parent_class;
 };
 
 GType gst_dtls_agent_get_type(void) G_GNUC_CONST;
index 62db5db..4fadde1 100644 (file)
@@ -107,8 +107,8 @@ struct _GstDtlsConnectionPrivate
   GThreadPool *thread_pool;
 };
 
-G_DEFINE_TYPE_WITH_CODE (GstDtlsConnection, gst_dtls_connection, G_TYPE_OBJECT,
-    G_ADD_PRIVATE (GstDtlsConnection)
+G_DEFINE_TYPE_WITH_CODE (GstDtlsConnection, gst_dtls_connection,
+    GST_TYPE_OBJECT, G_ADD_PRIVATE (GstDtlsConnection)
     GST_DEBUG_CATEGORY_INIT (gst_dtls_connection_debug, "dtlsconnection", 0,
         "DTLS Connection"));
 
index e899dd6..82234fa 100644 (file)
@@ -85,13 +85,13 @@ GType gst_dtls_connection_state_get_type (void);
  * Once the DTLS handshake is completed, on-encoder-key and on-decoder-key will be signalled.
  */
 struct _GstDtlsConnection {
-    GObject parent_instance;
+    GstObject parent_instance;
 
     GstDtlsConnectionPrivate *priv;
 };
 
 struct _GstDtlsConnectionClass {
-    GObjectClass parent_class;
+    GstObjectClass parent_class;
 };
 
 GType gst_dtls_connection_get_type(void) G_GNUC_CONST;