Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally

Since we started depending on GLib 2.44, we can be sure this macro is
defined (it will be a no-op on compilers that don't support it).
This commit is contained in:
Niels De Graef 2019-06-05 08:12:10 +02:00
parent e2eea3b3ee
commit 7af1a4566f
8 changed files with 0 additions and 16 deletions

View file

@ -109,9 +109,7 @@ GST_AUDIO_BAD_API
GstClockTime gst_planar_audio_adapter_prev_dts (GstPlanarAudioAdapter * adapter,
guint64 * distance);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlanarAudioAdapter, gst_object_unref)
#endif
G_END_DECLS

View file

@ -121,9 +121,7 @@ void gst_insert_bin_remove (GstInsertBin * self, GstElement * element,
GstInsertBinCallback callback, gpointer user_data);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstInsertBin, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_INSERT_BIN_H__ */

View file

@ -68,9 +68,7 @@ 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

View file

@ -74,9 +74,7 @@ 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

View file

@ -54,9 +54,7 @@ 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

View file

@ -65,9 +65,7 @@ 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

View file

@ -69,9 +69,7 @@ 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

View file

@ -68,9 +68,7 @@ struct _GstWebRTCRTPTransceiverClass
gpointer _padding[GST_PADDING-1];
};
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstWebRTCRTPTransceiver, gst_object_unref)
#endif
GST_WEBRTC_API
void gst_webrtc_rtp_transceiver_set_direction (GstWebRTCRTPTransceiver * trans,