mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
GstStream/GstStreamCollection: add g_autoptr() support
https://bugzilla.gnome.org/show_bug.cgi?id=777810
This commit is contained in:
parent
b2c05cac8e
commit
e286e81856
2 changed files with 9 additions and 0 deletions
|
@ -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__ */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue