diff --git a/gst-libs/gst/allocators/gstfdmemory.h b/gst-libs/gst/allocators/gstfdmemory.h index e2da2d75dc..75efae20a2 100644 --- a/gst-libs/gst/allocators/gstfdmemory.h +++ b/gst-libs/gst/allocators/gstfdmemory.h @@ -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__ */ diff --git a/gst-libs/gst/app/gstappsink.h b/gst-libs/gst/app/gstappsink.h index 4e8485896e..05c2b13e9c 100644 --- a/gst-libs/gst/app/gstappsink.h +++ b/gst-libs/gst/app/gstappsink.h @@ -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 diff --git a/gst-libs/gst/app/gstappsrc.h b/gst-libs/gst/app/gstappsrc.h index 783b10cd9c..d37edaeeac 100644 --- a/gst-libs/gst/app/gstappsrc.h +++ b/gst-libs/gst/app/gstappsrc.h @@ -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 diff --git a/gst-libs/gst/audio/audio-info.h b/gst-libs/gst/audio/audio-info.h index 7e271afc13..0f7c7d8bd9 100644 --- a/gst-libs/gst/audio/audio-info.h +++ b/gst-libs/gst/audio/audio-info.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudiobasesink.h b/gst-libs/gst/audio/gstaudiobasesink.h index fbb85e961e..8c709bd58f 100644 --- a/gst-libs/gst/audio/gstaudiobasesink.h +++ b/gst-libs/gst/audio/gstaudiobasesink.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudiobasesrc.h b/gst-libs/gst/audio/gstaudiobasesrc.h index 0c5323ed37..7bf2de46c5 100644 --- a/gst-libs/gst/audio/gstaudiobasesrc.h +++ b/gst-libs/gst/audio/gstaudiobasesrc.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudiocdsrc.h b/gst-libs/gst/audio/gstaudiocdsrc.h index 593926d2ab..dcfabae551 100644 --- a/gst-libs/gst/audio/gstaudiocdsrc.h +++ b/gst-libs/gst/audio/gstaudiocdsrc.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudioclock.h b/gst-libs/gst/audio/gstaudioclock.h index d04a4cd5fe..4956c9b796 100644 --- a/gst-libs/gst/audio/gstaudioclock.h +++ b/gst-libs/gst/audio/gstaudioclock.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudiodecoder.h b/gst-libs/gst/audio/gstaudiodecoder.h index 1c498eeaeb..f36416186b 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.h +++ b/gst-libs/gst/audio/gstaudiodecoder.h @@ -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_ */ diff --git a/gst-libs/gst/audio/gstaudioencoder.h b/gst-libs/gst/audio/gstaudioencoder.h index c9f827242a..47ca340bfc 100644 --- a/gst-libs/gst/audio/gstaudioencoder.h +++ b/gst-libs/gst/audio/gstaudioencoder.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudiofilter.h b/gst-libs/gst/audio/gstaudiofilter.h index a2850bca54..4610f3ae01 100644 --- a/gst-libs/gst/audio/gstaudiofilter.h +++ b/gst-libs/gst/audio/gstaudiofilter.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudioringbuffer.h b/gst-libs/gst/audio/gstaudioringbuffer.h index b3c87c466f..b0e3e9b36d 100644 --- a/gst-libs/gst/audio/gstaudioringbuffer.h +++ b/gst-libs/gst/audio/gstaudioringbuffer.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudiosink.h b/gst-libs/gst/audio/gstaudiosink.h index 02d5a7e681..78b5bae842 100644 --- a/gst-libs/gst/audio/gstaudiosink.h +++ b/gst-libs/gst/audio/gstaudiosink.h @@ -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__ */ diff --git a/gst-libs/gst/audio/gstaudiosrc.h b/gst-libs/gst/audio/gstaudiosrc.h index 89d8af1b83..db2392ac53 100644 --- a/gst-libs/gst/audio/gstaudiosrc.h +++ b/gst-libs/gst/audio/gstaudiosrc.h @@ -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__ */ diff --git a/gst-libs/gst/pbutils/encoding-profile.h b/gst-libs/gst/pbutils/encoding-profile.h index a667f8c417..9957a5f5ba 100644 --- a/gst-libs/gst/pbutils/encoding-profile.h +++ b/gst-libs/gst/pbutils/encoding-profile.h @@ -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__ */ diff --git a/gst-libs/gst/pbutils/encoding-target.h b/gst-libs/gst/pbutils/encoding-target.h index ddc60eeffc..0c3a39c808 100644 --- a/gst-libs/gst/pbutils/encoding-target.h +++ b/gst-libs/gst/pbutils/encoding-target.h @@ -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__ */ diff --git a/gst-libs/gst/pbutils/gstdiscoverer.h b/gst-libs/gst/pbutils/gstdiscoverer.h index 553de3c646..d3fdbb6936 100644 --- a/gst-libs/gst/pbutils/gstdiscoverer.h +++ b/gst-libs/gst/pbutils/gstdiscoverer.h @@ -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 */ diff --git a/gst-libs/gst/pbutils/install-plugins.h b/gst-libs/gst/pbutils/install-plugins.h index cd3eb00167..a749349b51 100644 --- a/gst-libs/gst/pbutils/install-plugins.h +++ b/gst-libs/gst/pbutils/install-plugins.h @@ -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__ */ diff --git a/gst-libs/gst/rtp/gstrtpbaseaudiopayload.h b/gst-libs/gst/rtp/gstrtpbaseaudiopayload.h index ff2e13d8a9..99e8dd6460 100644 --- a/gst-libs/gst/rtp/gstrtpbaseaudiopayload.h +++ b/gst-libs/gst/rtp/gstrtpbaseaudiopayload.h @@ -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__ */ diff --git a/gst-libs/gst/rtp/gstrtpbasedepayload.h b/gst-libs/gst/rtp/gstrtpbasedepayload.h index 20c0b00026..4c6f31e2d3 100644 --- a/gst-libs/gst/rtp/gstrtpbasedepayload.h +++ b/gst-libs/gst/rtp/gstrtpbasedepayload.h @@ -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__ */ diff --git a/gst-libs/gst/rtp/gstrtpbasepayload.h b/gst-libs/gst/rtp/gstrtpbasepayload.h index b35e211824..366377a29b 100644 --- a/gst-libs/gst/rtp/gstrtpbasepayload.h +++ b/gst-libs/gst/rtp/gstrtpbasepayload.h @@ -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__ */ diff --git a/gst-libs/gst/rtsp/gstrtspurl.h b/gst-libs/gst/rtsp/gstrtspurl.h index 59700b5ca2..7647c77858 100644 --- a/gst-libs/gst/rtsp/gstrtspurl.h +++ b/gst-libs/gst/rtsp/gstrtspurl.h @@ -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__ */ diff --git a/gst-libs/gst/sdp/gstmikey.h b/gst-libs/gst/sdp/gstmikey.h index 02635af400..bbd06b3a63 100644 --- a/gst-libs/gst/sdp/gstmikey.h +++ b/gst-libs/gst/sdp/gstmikey.h @@ -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__ */ diff --git a/gst-libs/gst/sdp/gstsdpmessage.h b/gst-libs/gst/sdp/gstsdpmessage.h index 62f5a03b05..ea9aed813a 100644 --- a/gst-libs/gst/sdp/gstsdpmessage.h +++ b/gst-libs/gst/sdp/gstsdpmessage.h @@ -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__ */ diff --git a/gst-libs/gst/tag/gsttagdemux.h b/gst-libs/gst/tag/gsttagdemux.h index 59036740ae..aaf953d4ee 100644 --- a/gst-libs/gst/tag/gsttagdemux.h +++ b/gst-libs/gst/tag/gsttagdemux.h @@ -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__ */ diff --git a/gst-libs/gst/tag/gsttagmux.h b/gst-libs/gst/tag/gsttagmux.h index ebb8b048db..d19ea4c3d9 100644 --- a/gst-libs/gst/tag/gsttagmux.h +++ b/gst-libs/gst/tag/gsttagmux.h @@ -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 diff --git a/gst-libs/gst/video/colorbalancechannel.h b/gst-libs/gst/video/colorbalancechannel.h index 431d0835c7..b124f4e54b 100644 --- a/gst-libs/gst/video/colorbalancechannel.h +++ b/gst-libs/gst/video/colorbalancechannel.h @@ -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__ */ diff --git a/gst-libs/gst/video/gstvideodecoder.h b/gst-libs/gst/video/gstvideodecoder.h index 7622477067..34fa1137df 100644 --- a/gst-libs/gst/video/gstvideodecoder.h +++ b/gst-libs/gst/video/gstvideodecoder.h @@ -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 diff --git a/gst-libs/gst/video/gstvideoencoder.h b/gst-libs/gst/video/gstvideoencoder.h index ea70552dff..f01afc62dd 100644 --- a/gst-libs/gst/video/gstvideoencoder.h +++ b/gst-libs/gst/video/gstvideoencoder.h @@ -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 diff --git a/gst-libs/gst/video/gstvideofilter.h b/gst-libs/gst/video/gstvideofilter.h index 11ca44f935..e64d533716 100644 --- a/gst-libs/gst/video/gstvideofilter.h +++ b/gst-libs/gst/video/gstvideofilter.h @@ -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__ */ diff --git a/gst-libs/gst/video/gstvideopool.h b/gst-libs/gst/video/gstvideopool.h index 99f0863c62..d5a9de474e 100644 --- a/gst-libs/gst/video/gstvideopool.h +++ b/gst-libs/gst/video/gstvideopool.h @@ -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__ */ diff --git a/gst-libs/gst/video/gstvideosink.h b/gst-libs/gst/video/gstvideosink.h index 23b97db3ba..cc57be923c 100644 --- a/gst-libs/gst/video/gstvideosink.h +++ b/gst-libs/gst/video/gstvideosink.h @@ -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__ */ diff --git a/gst-libs/gst/video/gstvideoutils.h b/gst-libs/gst/video/gstvideoutils.h index 84399d4ba4..deea0ee823 100644 --- a/gst-libs/gst/video/gstvideoutils.h +++ b/gst-libs/gst/video/gstvideoutils.h @@ -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 diff --git a/gst-libs/gst/video/video-info.h b/gst-libs/gst/video/video-info.h index 102328f45f..aaddea7902 100644 --- a/gst-libs/gst/video/video-info.h +++ b/gst-libs/gst/video/video-info.h @@ -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__ */ diff --git a/gst-libs/gst/video/video-overlay-composition.h b/gst-libs/gst/video/video-overlay-composition.h index 3b3e381c7a..9e7553817a 100644 --- a/gst-libs/gst/video/video-overlay-composition.h +++ b/gst-libs/gst/video/video-overlay-composition.h @@ -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__ */