Use G_DEFINE_AUTOPTR_CLEANUP_FUNC unconditionally
authorNiels De Graef <niels.degraef@barco.com>
Wed, 5 Jun 2019 06:12:10 +0000 (08:12 +0200)
committerNiels De Graef <niels.degraef@barco.com>
Wed, 5 Jun 2019 06:12:10 +0000 (08:12 +0200)
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).

gst-libs/gst/audio/gstplanaraudioadapter.h
gst-libs/gst/insertbin/gstinsertbin.h
gst-libs/gst/webrtc/dtlstransport.h
gst-libs/gst/webrtc/icetransport.h
gst-libs/gst/webrtc/rtcsessiondescription.h
gst-libs/gst/webrtc/rtpreceiver.h
gst-libs/gst/webrtc/rtpsender.h
gst-libs/gst/webrtc/rtptransceiver.h

index 5ddb098..0b97b55 100644 (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
 
index 705ae30..5cd7e47 100644 (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__ */
index 0f9f50c..feb3944 100644 (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
 
index 1618df7..c1e56d4 100644 (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
 
index ae6863b..375642e 100644 (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
 
index 81c230f..55a9a86 100644 (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
 
index 02eee0f..bcaf93c 100644 (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
 
index 78c8a6d..e28b0a7 100644 (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,