GstStream/GstStreamCollection: add g_autoptr() support

https://bugzilla.gnome.org/show_bug.cgi?id=777810
This commit is contained in:
Brendan Shanks 2017-01-26 15:32:31 -08:00 committed by Tim-Philipp Müller
parent b2c05cac8e
commit e286e81856
2 changed files with 9 additions and 0 deletions

View file

@ -103,6 +103,10 @@ GstStream *gst_stream_collection_get_stream (GstStreamCollection *collection, gu
gboolean gst_stream_collection_add_stream (GstStreamCollection *collection,
GstStream *stream);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstStreamCollection, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_STREAM_COLLECTION_H__ */

View file

@ -130,6 +130,11 @@ void gst_stream_set_caps (GstStream *stream, GstCaps *caps);
GstCaps *gst_stream_get_caps (GstStream *stream);
const gchar *gst_stream_type_get_name (GstStreamType stype);
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstStream, gst_object_unref)
#endif
G_END_DECLS
#endif /* __GST_STREAMS_H__ */