{audio,video}aggregator: define autoptr cleanup functions
authorMathieu Duponchelle <mathieu@centricular.com>
Mon, 26 Aug 2019 22:10:32 +0000 (00:10 +0200)
committerMathieu Duponchelle <mduponchelle1@gmail.com>
Wed, 28 Aug 2019 14:52:22 +0000 (14:52 +0000)
gst-libs/gst/audio/gstaudioaggregator.h
gst-libs/gst/video/gstvideoaggregator.h

index 2e97631..9842f4d 100644 (file)
@@ -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__ */
index aa070aa..3e49251 100644 (file)
@@ -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__ */