From ec84cf92f95acfc129453d37251f0613cca661f7 Mon Sep 17 00:00:00 2001 From: Niels De Graef Date: Sat, 14 Mar 2020 14:42:12 +0100 Subject: [PATCH] *aggregator: Add g_autoptr support for *ConvertPad --- gst-libs/gst/audio/gstaudioaggregator.h | 3 +-- gst-libs/gst/video/gstvideoaggregator.h | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gst-libs/gst/audio/gstaudioaggregator.h b/gst-libs/gst/audio/gstaudioaggregator.h index 9842f4d6e9..2184f54b4c 100644 --- a/gst-libs/gst/audio/gstaudioaggregator.h +++ b/gst-libs/gst/audio/gstaudioaggregator.h @@ -223,10 +223,9 @@ 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_DEFINE_AUTOPTR_CLEANUP_FUNC(GstAudioAggregatorConvertPad, gst_object_unref) G_END_DECLS diff --git a/gst-libs/gst/video/gstvideoaggregator.h b/gst-libs/gst/video/gstvideoaggregator.h index 3e492515cc..3c7345fe34 100644 --- a/gst-libs/gst/video/gstvideoaggregator.h +++ b/gst-libs/gst/video/gstvideoaggregator.h @@ -247,10 +247,9 @@ 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_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVideoAggregatorConvertPad, gst_object_unref) G_END_DECLS #endif /* __GST_VIDEO_AGGREGATOR_H__ */