summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-08-05 12:31:53 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>2020-08-05 12:31:53 +0200
commitb542b1c257a6e2d5b1631fb172002bad9d8cfed4 (patch)
tree0fd4bfa6c27a511111e9a1d0ccc2d81b4a38bbc9 /gst-libs
parent92f956773722fde05546733317f589677b5af9b1 (diff)
downloadgstreamer-plugins-bad-b542b1c257a6e2d5b1631fb172002bad9d8cfed4.tar.gz
player: Add g_autoptr() support
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1495>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/player/gstplayer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/player/gstplayer.h b/gst-libs/gst/player/gstplayer.h
index d5737ca26..e853ed875 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);