codecs: Add missing auto cleanup funcs

This commit is contained in:
Nicolas Dufresne 2020-02-09 11:20:16 -05:00 committed by Nicolas Dufresne
parent 00d04784d3
commit f3f60f5a4c
6 changed files with 12 additions and 0 deletions

View file

@ -106,6 +106,8 @@ struct _GstH264DecoderClass
gpointer padding[GST_PADDING_LARGE];
};
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstH264Decoder, gst_object_unref)
GST_CODECS_API
GType gst_h264_decoder_get_type (void);

View file

@ -208,6 +208,8 @@ gint gst_h264_dpb_get_size (GstH264Dpb * dpb);
GST_CODECS_API
gboolean gst_h264_dpb_is_full (GstH264Dpb * dpb);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstH264Picture, gst_h264_picture_unref)
G_END_DECLS
#endif /* __GST_H264_PICTURE_H__ */

View file

@ -137,6 +137,8 @@ struct _GstH265DecoderClass
gpointer padding[GST_PADDING_LARGE];
};
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstH265Decoder, gst_object_unref)
GST_CODECS_API
GType gst_h265_decoder_get_type (void);

View file

@ -197,6 +197,8 @@ gint gst_h265_dpb_get_size (GstH265Dpb * dpb);
GST_CODECS_API
gboolean gst_h265_dpb_is_full (GstH265Dpb * dpb);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstH265Picture, gst_h265_picture_unref)
G_END_DECLS
#endif /* __GST_H265_PICTURE_H__ */

View file

@ -108,6 +108,8 @@ struct _GstVp9DecoderClass
gpointer padding[GST_PADDING_LARGE];
};
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVp9Decoder, gst_object_unref)
GST_CODECS_API
GType gst_vp9_decoder_get_type (void);

View file

@ -119,6 +119,8 @@ GST_CODECS_API
void gst_vp9_dpb_add (GstVp9Dpb * dpb,
GstVp9Picture * picture);
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstVp9Picture, gst_vp9_picture_unref)
G_END_DECLS
#endif /* __GST_VP9_PICTURE_H__ */