diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2021-03-11 15:41:16 +0100 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2021-03-11 15:41:16 +0100 |
commit | 44bdad58f623e50a07476c0f40f8ff7543396f7c (patch) | |
tree | 30a6ebb72848a303be3435750fc1a78482229fae | |
parent | 0da1721364282c206951ce81163a3c83a7946dea (diff) |
clock: define AUTO_CLEANUP_FREE_FUNC for GstClockID
GstClockID is secretly a gpointer so we can't use g_autoptr(),
instead user can do:
g_auto (GstClockID) clock_id = 0;
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/769>
-rw-r--r-- | gst/gstclock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/gstclock.h b/gst/gstclock.h index 6d1fb522ab..46419c9dd1 100644 --- a/gst/gstclock.h +++ b/gst/gstclock.h @@ -705,6 +705,7 @@ gboolean gst_clock_periodic_id_reinit (GstClock * clock, GstClockTime interval); G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstClock, gst_object_unref) +G_DEFINE_AUTO_CLEANUP_FREE_FUNC(GstClockID, gst_clock_id_unref, 0) G_END_DECLS |