diff --git a/gst-libs/gst/webrtc/dtlstransport.h b/gst-libs/gst/webrtc/dtlstransport.h index 207328e736..2af197567b 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 86860a2367..d18c44fd97 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 3e0f1f4cd9..ae6863b9eb 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 99ef6298e0..9502c5cc3a 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 f1af0900bf..a23551eca1 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 6192314d0e..3c7c92a95a 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__ */