base: Add g_autoptr() support to all types
authorXavier Claessens <xavier.claessens@collabora.com>
Tue, 10 Nov 2015 17:54:23 +0000 (12:54 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 14 Dec 2015 18:39:43 +0000 (13:39 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=754464

35 files changed:
gst-libs/gst/allocators/gstfdmemory.h
gst-libs/gst/app/gstappsink.h
gst-libs/gst/app/gstappsrc.h
gst-libs/gst/audio/audio-info.h
gst-libs/gst/audio/gstaudiobasesink.h
gst-libs/gst/audio/gstaudiobasesrc.h
gst-libs/gst/audio/gstaudiocdsrc.h
gst-libs/gst/audio/gstaudioclock.h
gst-libs/gst/audio/gstaudiodecoder.h
gst-libs/gst/audio/gstaudioencoder.h
gst-libs/gst/audio/gstaudiofilter.h
gst-libs/gst/audio/gstaudioringbuffer.h
gst-libs/gst/audio/gstaudiosink.h
gst-libs/gst/audio/gstaudiosrc.h
gst-libs/gst/pbutils/encoding-profile.h
gst-libs/gst/pbutils/encoding-target.h
gst-libs/gst/pbutils/gstdiscoverer.h
gst-libs/gst/pbutils/install-plugins.h
gst-libs/gst/rtp/gstrtpbaseaudiopayload.h
gst-libs/gst/rtp/gstrtpbasedepayload.h
gst-libs/gst/rtp/gstrtpbasepayload.h
gst-libs/gst/rtsp/gstrtspurl.h
gst-libs/gst/sdp/gstmikey.h
gst-libs/gst/sdp/gstsdpmessage.h
gst-libs/gst/tag/gsttagdemux.h
gst-libs/gst/tag/gsttagmux.h
gst-libs/gst/video/colorbalancechannel.h
gst-libs/gst/video/gstvideodecoder.h
gst-libs/gst/video/gstvideoencoder.h
gst-libs/gst/video/gstvideofilter.h
gst-libs/gst/video/gstvideopool.h
gst-libs/gst/video/gstvideosink.h
gst-libs/gst/video/gstvideoutils.h
gst-libs/gst/video/video-info.h
gst-libs/gst/video/video-overlay-composition.h

index e2da2d7..75efae2 100644 (file)
@@ -82,6 +82,10 @@ GstMemory *     gst_fd_allocator_alloc  (GstAllocator * allocator, gint fd,
 gboolean        gst_is_fd_memory        (GstMemory *mem);
 gint            gst_fd_memory_get_fd    (GstMemory *mem);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstFdAllocator, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_FD_ALLOCATOR_H__ */
index 4e84858..05c2b13 100644 (file)
@@ -123,6 +123,10 @@ void            gst_app_sink_set_callbacks    (GstAppSink * appsink,
                                                gpointer user_data,
                                                GDestroyNotify notify);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAppSink, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif
index 783b10c..d37edae 100644 (file)
@@ -150,6 +150,10 @@ void             gst_app_src_set_callbacks           (GstAppSrc * appsrc,
                                                       gpointer user_data,
                                                       GDestroyNotify notify);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAppSrc, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif
index 7e271af..0f7c7d8 100644 (file)
@@ -131,6 +131,10 @@ gboolean       gst_audio_info_convert     (const GstAudioInfo * info,
 gboolean       gst_audio_info_is_equal    (const GstAudioInfo *info,
                                            const GstAudioInfo *other);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioInfo, gst_audio_info_free)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_INFO_H__ */
index fbb85e9..8c709bd 100644 (file)
@@ -258,6 +258,10 @@ gst_audio_base_sink_set_custom_slaving_callback        (GstAudioBaseSink * sink,
 
 void gst_audio_base_sink_report_device_failure         (GstAudioBaseSink * sink);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioBaseSink, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_BASE_SINK_H__ */
index 0c5323e..7bf2de4 100644 (file)
@@ -145,6 +145,10 @@ GstAudioBaseSrcSlaveMethod
            gst_audio_base_src_get_slave_method         (GstAudioBaseSrc *src);
 
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioBaseSrc, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_BASE_SRC_H__ */
index 593926d..dcfabae 100644 (file)
@@ -139,6 +139,10 @@ GType    gst_audio_cd_src_mode_get_type (void);
 gboolean gst_audio_cd_src_add_track (GstAudioCdSrc      * src,
                                      GstAudioCdSrcTrack * track);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioCdSrc, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_CD_SRC_H__ */
index d04a4cd..4956c9b 100644 (file)
@@ -99,6 +99,10 @@ GstClockTime    gst_audio_clock_adjust          (GstClock * clock, GstClockTime
 
 void            gst_audio_clock_invalidate      (GstClock * clock);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioClock, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_CLOCK_H__ */
index 1c498ee..f364161 100644 (file)
@@ -397,6 +397,10 @@ void              gst_audio_decoder_merge_tags (GstAudioDecoder * dec,
 void              gst_audio_decoder_set_use_default_pad_acceptcaps (GstAudioDecoder * decoder,
                                                                    gboolean use);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioDecoder, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* _GST_AUDIO_DECODER_H_ */
index c9f8272..47ca340 100644 (file)
@@ -334,6 +334,10 @@ void            gst_audio_encoder_get_allocator (GstAudioEncoder * enc,
 void            gst_audio_encoder_merge_tags (GstAudioEncoder * enc,
                                               const GstTagList * tags, GstTagMergeMode mode);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioEncoder, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_ENCODER_H__ */
index a2850bc..4610f3a 100644 (file)
@@ -97,6 +97,10 @@ GType   gst_audio_filter_get_type (void);
 void    gst_audio_filter_class_add_pad_templates (GstAudioFilterClass * klass,
                                                   GstCaps             * allowed_caps);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioFilter, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_FILTER_H__ */
index b3c87c4..b0e3e9b 100644 (file)
@@ -333,6 +333,10 @@ void            gst_audio_ring_buffer_advance         (GstAudioRingBuffer *buf,
 
 void            gst_audio_ring_buffer_may_start       (GstAudioRingBuffer *buf, gboolean allowed);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioRingBuffer, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_RING_BUFFER_H__ */
index 02d5a7e..78b5bae 100644 (file)
@@ -99,6 +99,10 @@ struct _GstAudioSinkClass {
 
 GType gst_audio_sink_get_type(void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioSink, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_SINK_H__ */
index 89d8af1..db2392a 100644 (file)
@@ -98,6 +98,10 @@ struct _GstAudioSrcClass {
 
 GType gst_audio_src_get_type(void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioSrc, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_AUDIO_SRC_H__ */
index a667f8c..9957a5f 100644 (file)
@@ -189,6 +189,22 @@ void     gst_encoding_video_profile_set_variableframerate (GstEncodingVideoProfi
 
 GstEncodingProfile * gst_encoding_profile_from_discoverer (GstDiscovererInfo *info);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingAudioProfile, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingContainerProfile, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingProfile, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingVideoProfile, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_PROFILE_H__ */
index ddc60ee..0c3a39c 100644 (file)
@@ -138,6 +138,10 @@ GstEncodingTarget *     gst_encoding_target_load_from_file      (const gchar *fi
 GList *                 gst_encoding_list_available_categories  (void);
 GList *                 gst_encoding_list_all_targets           (const gchar * categoryname);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstEncodingTarget, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif  /* __GST_PROFILE_REGISTRY_H__ */
index 553de3c..d3fdbb6 100644 (file)
@@ -301,6 +301,34 @@ gst_discoverer_discover_uri (GstDiscoverer * discoverer,
                             const gchar * uri,
                             GError ** err);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscoverer, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererAudioInfo, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererContainerInfo, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererInfo, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererStreamInfo, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererSubtitleInfo, gst_object_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstDiscovererVideoInfo, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* _GST_DISCOVERER_H */
index cd3eb00..a749349 100644 (file)
@@ -141,6 +141,10 @@ gboolean      gst_install_plugins_installation_in_progress (void);
 
 gboolean      gst_install_plugins_supported (void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstInstallPluginsContext, gst_install_plugins_context_free)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_PB_UTILS_INSTALL_PLUGINS_H__ */
index ff2e13d..99e8dd6 100644 (file)
@@ -101,6 +101,10 @@ GstFlowReturn   gst_rtp_base_audio_payload_push                   (GstRTPBaseAud
 GstFlowReturn   gst_rtp_base_audio_payload_flush                  (GstRTPBaseAudioPayload * baseaudiopayload,
                                                                    guint payload_len, GstClockTime timestamp);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTPBaseAudioPayload, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_RTP_BASE_AUDIO_PAYLOAD_H__ */
index 20c0b00..4c6f31e 100644 (file)
@@ -120,6 +120,10 @@ GstFlowReturn   gst_rtp_base_depayload_push       (GstRTPBaseDepayload *filter,
 GstFlowReturn   gst_rtp_base_depayload_push_list  (GstRTPBaseDepayload *filter, GstBufferList *out_list);
 
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTPBaseDepayload, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_RTP_BASE_DEPAYLOAD_H__ */
index b35e211..366377a 100644 (file)
@@ -165,6 +165,10 @@ GstFlowReturn   gst_rtp_base_payload_push               (GstRTPBasePayload *payl
 GstFlowReturn   gst_rtp_base_payload_push_list          (GstRTPBasePayload *payload,
                                                          GstBufferList *list);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTPBasePayload, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_RTP_BASE_PAYLOAD_H__ */
index 59700b5..7647c77 100644 (file)
@@ -98,6 +98,10 @@ gchar**            gst_rtsp_url_decode_path_components
 GstRTSPResult      gst_rtsp_url_set_port        (GstRTSPUrl *url, guint16 port);
 GstRTSPResult      gst_rtsp_url_get_port        (const GstRTSPUrl *url, guint16 *port);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstRTSPUrl, gst_rtsp_url_free)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_RTSP_URL_H__ */
index 02635af..bbd06b3 100644 (file)
@@ -675,6 +675,14 @@ gboolean                    gst_mikey_message_add_rand_len      (GstMIKEYMessage
 /* General Extension Payload */
 
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstMIKEYMessage, gst_mikey_message_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstMIKEYPayload, gst_mikey_payload_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_MIKEY_H__ */
index 62f5a03..ea9aed8 100644 (file)
@@ -502,6 +502,10 @@ GstSDPResult            gst_sdp_media_remove_attribute      (GstSDPMedia *media,
 GstSDPResult            gst_sdp_media_add_attribute         (GstSDPMedia *media, const gchar *key,
                                                              const gchar *value);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstSDPMessage, gst_sdp_message_free)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_SDP_MESSAGE_H__ */
index 5903674..aaf953d 100644 (file)
@@ -132,6 +132,10 @@ struct _GstTagDemuxClass
 
 GType     gst_tag_demux_get_type (void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagDemux, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_TAG_DEMUX_H__ */
index ebb8b04..d19ea4c 100644 (file)
@@ -80,6 +80,10 @@ struct _GstTagMuxClass {
 
 GType gst_tag_mux_get_type (void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstTagMux, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif
index 431d083..b124f4e 100644 (file)
@@ -80,6 +80,10 @@ struct _GstColorBalanceChannelClass {
 
 GType   gst_color_balance_channel_get_type (void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstColorBalanceChannel, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_COLOR_BALANCE_CHANNEL_H__ */
index 7622477..34fa113 100644 (file)
@@ -427,6 +427,10 @@ GstCaps *        gst_video_decoder_proxy_getcaps (GstVideoDecoder * decoder,
 void             gst_video_decoder_set_use_default_pad_acceptcaps (GstVideoDecoder * decoder,
                                                                    gboolean use);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoDecoder, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif
index ea70552..f01afc6 100644 (file)
@@ -344,6 +344,10 @@ void                 gst_video_encoder_get_allocator (GstVideoEncoder *encoder,
 
 void                 gst_video_encoder_set_min_pts(GstVideoEncoder *encoder, GstClockTime min_pts);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoEncoder, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif
index 11ca44f..e64d533 100644 (file)
@@ -81,6 +81,10 @@ struct _GstVideoFilterClass {
 
 GType gst_video_filter_get_type (void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoFilter, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_VIDEO_FILTER_H__ */
index 99f0863..d5a9de4 100644 (file)
@@ -75,6 +75,10 @@ GType             gst_video_buffer_pool_get_type      (void);
 
 GstBufferPool *   gst_video_buffer_pool_new           (void);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoBufferPool, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_VIDEO_POOL_H__ */
index 23b97db..cc57be9 100644 (file)
@@ -125,6 +125,10 @@ GType gst_video_sink_get_type (void);
 void gst_video_sink_center_rect (GstVideoRectangle src, GstVideoRectangle dst,
                                  GstVideoRectangle *result, gboolean scaling);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoSink, gst_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif  /* __GST_VIDEO_SINK_H__ */
index 84399d4..deea0ee 100644 (file)
@@ -277,6 +277,14 @@ void                 gst_video_codec_frame_set_user_data (GstVideoCodecFrame *fr
                                                          GDestroyNotify notify);
 gpointer             gst_video_codec_frame_get_user_data (GstVideoCodecFrame *frame);
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoCodecFrame, gst_video_codec_frame_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoCodecState, gst_video_codec_state_unref)
+#endif
+
 G_END_DECLS
 
 #endif
index 102328f..aaddea7 100644 (file)
@@ -363,6 +363,10 @@ gboolean       gst_video_info_is_equal    (const GstVideoInfo *info,
 void           gst_video_info_align       (GstVideoInfo * info, GstVideoAlignment * align);
 
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoInfo, gst_video_info_free)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_VIDEO_INFO_H__ */
index 3b3e381..9e75538 100644 (file)
@@ -295,6 +295,14 @@ GstVideoOverlayCompositionMeta * gst_buffer_add_video_overlay_composition_meta (
 #define gst_buffer_remove_video_overlay_composition_meta(b,m) \
   gst_buffer_remove_meta((b),((GstMeta *) m))
 
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoOverlayComposition, gst_video_overlay_composition_unref)
+#endif
+
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoOverlayRectangle, gst_video_overlay_rectangle_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __GST_VIDEO_OVERLAY_COMPOSITION_H__ */