summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels De Graef <niels.degraef@barco.com>2019-05-08 15:46:26 +0200
committerNiels De Graef <niels.degraef@barco.com>2019-05-08 15:47:06 +0200
commit39c8c206bedc495a4672a6b7560f2e480b31fbb1 (patch)
tree8cbb680d7b9a3c96323e809d375a4f2285e859f3
parentd2f6facbfb89f13a891e710b44e1561570de006a (diff)
downloadgstreamer-plugins-bad-39c8c206bedc495a4672a6b7560f2e480b31fbb1.tar.gz
webrtc: Add g_autoptr() support for public types
-rw-r--r--gst-libs/gst/webrtc/dtlstransport.h4
-rw-r--r--gst-libs/gst/webrtc/icetransport.h4
-rw-r--r--gst-libs/gst/webrtc/rtcsessiondescription.h5
-rw-r--r--gst-libs/gst/webrtc/rtpreceiver.h4
-rw-r--r--gst-libs/gst/webrtc/rtpsender.h4
-rw-r--r--gst-libs/gst/webrtc/rtptransceiver.h4
6 files changed, 25 insertions, 0 deletions
diff --git a/gst-libs/gst/webrtc/dtlstransport.h b/gst-libs/gst/webrtc/dtlstransport.h
index 207328e73..2af197567 100644
--- a/gst-libs/gst/webrtc/dtlstransport.h
+++ b/gst-libs/gst/webrtc/dtlstransport.h
@@ -65,6 +65,10 @@ GST_WEBRTC_API
void gst_webrtc_dtls_transport_set_transport (GstWebRTCDTLSTransport * transport,
GstWebRTCICETransport * ice);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCDTLSTransport, gst_object_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_WEBRTC_DTLS_TRANSPORT_H__ */
diff --git a/gst-libs/gst/webrtc/icetransport.h b/gst-libs/gst/webrtc/icetransport.h
index 86860a236..d18c44fd9 100644
--- a/gst-libs/gst/webrtc/icetransport.h
+++ b/gst-libs/gst/webrtc/icetransport.h
@@ -71,6 +71,10 @@ void gst_webrtc_ice_transport_selected_pair_change (GstWebRTCIC
GST_WEBRTC_API
void gst_webrtc_ice_transport_new_candidate (GstWebRTCICETransport * ice, guint stream_id, GstWebRTCICEComponent component, gchar * attr);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCICETransport, gst_object_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_WEBRTC_ICE_TRANSPORT_H__ */
diff --git a/gst-libs/gst/webrtc/rtcsessiondescription.h b/gst-libs/gst/webrtc/rtcsessiondescription.h
index 3e0f1f4cd..ae6863b9e 100644
--- a/gst-libs/gst/webrtc/rtcsessiondescription.h
+++ b/gst-libs/gst/webrtc/rtcsessiondescription.h
@@ -53,6 +53,11 @@ GstWebRTCSessionDescription * gst_webrtc_session_description_copy (con
GST_WEBRTC_API
void gst_webrtc_session_description_free (GstWebRTCSessionDescription * desc);
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCSessionDescription, gst_webrtc_session_description_free)
+#endif
+
G_END_DECLS
#endif /* __GST_WEBRTC_PEERCONNECTION_H__ */
diff --git a/gst-libs/gst/webrtc/rtpreceiver.h b/gst-libs/gst/webrtc/rtpreceiver.h
index 99ef6298e..9502c5cc3 100644
--- a/gst-libs/gst/webrtc/rtpreceiver.h
+++ b/gst-libs/gst/webrtc/rtpreceiver.h
@@ -62,6 +62,10 @@ GST_WEBRTC_API
void gst_webrtc_rtp_receiver_set_rtcp_transport (GstWebRTCRTPReceiver * receiver,
GstWebRTCDTLSTransport * transport);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPReceiver, gst_object_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_WEBRTC_RTP_RECEIVER_H__ */
diff --git a/gst-libs/gst/webrtc/rtpsender.h b/gst-libs/gst/webrtc/rtpsender.h
index f1af0900b..a23551eca 100644
--- a/gst-libs/gst/webrtc/rtpsender.h
+++ b/gst-libs/gst/webrtc/rtpsender.h
@@ -66,6 +66,10 @@ void gst_webrtc_rtp_sender_set_rtcp_transport (GstWebR
GstWebRTCDTLSTransport * transport);
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPSender, gst_object_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_WEBRTC_RTP_SENDER_H__ */
diff --git a/gst-libs/gst/webrtc/rtptransceiver.h b/gst-libs/gst/webrtc/rtptransceiver.h
index 6192314d0..3c7c92a95 100644
--- a/gst-libs/gst/webrtc/rtptransceiver.h
+++ b/gst-libs/gst/webrtc/rtptransceiver.h
@@ -61,6 +61,10 @@ struct _GstWebRTCRTPTransceiverClass
gpointer _padding[GST_PADDING];
};
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPTransceiver, gst_object_unref)
+#endif
+
G_END_DECLS
#endif /* __GST_WEBRTC_RTP_TRANSCEIVER_H__ */