From b542b1c257a6e2d5b1631fb172002bad9d8cfed4 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Wed, 5 Aug 2020 12:31:53 +0200 Subject: [PATCH] player: Add g_autoptr() support Part-of: --- gst-libs/gst/player/gstplayer.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/player/gstplayer.h b/gst-libs/gst/player/gstplayer.h index d5737ca262..e853ed8750 100644 --- a/gst-libs/gst/player/gstplayer.h +++ b/gst-libs/gst/player/gstplayer.h @@ -104,6 +104,9 @@ const gchar *gst_player_color_balance_type_get_name (GstPlayerColorBalanceType #define GST_PLAYER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GST_TYPE_PLAYER, GstPlayerClass)) #define GST_PLAYER_CAST(obj) ((GstPlayer*)(obj)) +#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC +G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlayer, gst_object_unref) +#endif GST_PLAYER_API GType gst_player_get_type (void);