From 4ccc7a51d12f8c8563ac873723b1e064c46d3c75 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Tue, 27 Aug 2019 00:10:32 +0200 Subject: [PATCH] {audio,video}aggregator: define autoptr cleanup functions --- gst-libs/gst/audio/gstaudioaggregator.h | 5 +++++ gst-libs/gst/video/gstvideoaggregator.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/gst-libs/gst/audio/gstaudioaggregator.h b/gst-libs/gst/audio/gstaudioaggregator.h index 2e97631782..9842f4d6e9 100644 --- a/gst-libs/gst/audio/gstaudioaggregator.h +++ b/gst-libs/gst/audio/gstaudioaggregator.h @@ -223,6 +223,11 @@ void gst_audio_aggregator_set_sink_caps (GstAudioAggregator * aagg, GstAudioAggregatorPad * pad, GstCaps * caps); +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioAggregator, gst_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioAggregatorPad, gst_object_unref) +#endif + G_END_DECLS #endif /* __GST_AUDIO_AGGREGATOR_H__ */ diff --git a/gst-libs/gst/video/gstvideoaggregator.h b/gst-libs/gst/video/gstvideoaggregator.h index aa070aac95..3e492515cc 100644 --- a/gst-libs/gst/video/gstvideoaggregator.h +++ b/gst-libs/gst/video/gstvideoaggregator.h @@ -247,5 +247,10 @@ struct _GstVideoAggregatorClass GST_VIDEO_API GType gst_video_aggregator_get_type (void); +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoAggregator, gst_object_unref) +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoAggregatorPad, gst_object_unref) +#endif + G_END_DECLS #endif /* __GST_VIDEO_AGGREGATOR_H__ */